X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/604501ec2e4bb2e8d39a1d16d8c38bf8069410da..26ea251c013f5c6e6edfe1707bb22d7bd6ce5c6d:/default.nix diff --git a/default.nix b/default.nix index 9b932fb..a33d20f 100644 --- a/default.nix +++ b/default.nix @@ -1,13 +1,25 @@ { 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-pre"; + version = "1.4.4"; 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 = { + description = "Cache git content locally"; + homepage = "https://git.scottworley.com/git-cache"; + license = pkgs.lib.licenses.gpl3; + maintainers = with pkgs.lib.maintainers; [ chkno ]; + }; }) { }