--- /dev/null
+{ pkgs ? import <nixpkgs> { } }:
+pkgs.python3Packages.callPackage
+({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, }:
+ buildPythonPackage rec {
+ pname = "pinch";
+ version = "1.3";
+ src = lib.cleanSource ./.;
+ checkInputs = [ nix git autopep8 mypy pylint ];
+ doCheck = true;
+ checkPhase = "./test.sh";
+ }) { }
--- /dev/null
+from setuptools import setup
+
+setup(
+ name="pinch",
+ version="1.4",
+ py_modules=['pinch'],
+ entry_points={"console_scripts": ["pinch = pinch:main"]},
+)
+++ /dev/null
-{ pkgs ? import <nixpkgs> { } }:
-pkgs.mkShell rec {
- doCheck = true;
- buildInputs = with pkgs; [ python3 ];
- checkInputs = with pkgs; [
- mypy
- python3Packages.autopep8
- python3Packages.pylint
- ];
-}