X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/50685beba299ab4b601b6aabb013bb8398c8bfb0..3acf0fa75512a9e1d341d6847ec1bb891d2050a5:/default.nix diff --git a/default.nix b/default.nix index a161d41..40cef55 100644 --- a/default.nix +++ b/default.nix @@ -1,13 +1,19 @@ { pkgs ? import { }, lint ? false }: -pkgs.python3Packages.callPackage +let + checkInputsAreNative = pkgs.lib.hasInfix "nativeCheckInputs" + (builtins.readFile ); + checkInputsName = + if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; +in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, nix, git, backoff, autopep8, mypy, pylint, }: buildPythonPackage rec { pname = "git-cache"; - version = "1.4.2"; + version = "1.5.0"; src = lib.cleanSource ./.; propagatedBuildInputs = [ backoff ]; - checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ]; + "${checkInputsName}" = [ nix git mypy ] + ++ lib.optionals lint [ autopep8 pylint ]; doCheck = true; checkPhase = "./test.sh"; meta = {