]>
Commit | Line | Data |
---|---|---|
ac783e58 SW |
1 | { pkgs ? import <nixpkgs> { }, lint ? false }: |
2 | pkgs.python3Packages.callPackage | |
3 | ({ lib, buildPythonPackage, autopep8, mypy, pylint, }: | |
4 | buildPythonPackage rec { | |
5 | pname = "nix-pin-deps"; | |
6 | version = "1.0.0"; | |
7 | src = lib.cleanSource ./.; | |
8 | checkInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; | |
9 | doCheck = true; | |
10 | checkPhase = '' | |
11 | ./test.sh ${lib.optionalString lint "lint"} | |
12 | ''; | |
13 | }) { } |