X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/02c8290c2eb98e1fd6d7a0db1dcf11976ad2d85d..815e366bb8a93f938f435a0e6a347ce29c2e16da:/default.nix?ds=inline diff --git a/default.nix b/default.nix index e94df96..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.1"; + 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"; }) {