checkPhase = "./test.sh";
};
-in pkgs.python3Packages.callPackage
-({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, git-cache, }:
+in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, nix, git
+ , autopep8, makeWrapper, mypy, pylint, git-cache, }:
buildPythonPackage rec {
pname = "pinch";
- version = "3.0.2-pre";
+ version = "3.0.4";
src = lib.cleanSource ./.;
+ buildInputs = [ makeWrapper ];
propagatedBuildInputs = [ git-cache ];
checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+ postInstall = ''
+ wrapProgram "$out/bin/pinch" --prefix PATH : ${nix}/bin
+ '';
doCheck = true;
checkPhase = "./test.sh";
}) {