-{ pkgs ? import <nixpkgs> { } }:
+{ pkgs ? import <nixpkgs> { }, lint ? false }:
pkgs.python3Packages.callPackage
({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, }:
buildPythonPackage rec {
pname = "pinch";
- version = "1.3";
+ version = "2.1.0";
src = lib.cleanSource ./.;
- checkInputs = [ nix git autopep8 mypy pylint ];
+ checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ];
doCheck = true;
checkPhase = "./test.sh";
}) { }