X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/448c7a49ab28e711e2f3c914525beb08591da8a8..815e366bb8a93f938f435a0e6a347ce29c2e16da:/default.nix diff --git a/default.nix b/default.nix index cda5bb9..f3816c5 100644 --- a/default.nix +++ b/default.nix @@ -34,14 +34,18 @@ let 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"; }) {