X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/bc6c850d26ae2a7813741d80a8b7113aeed81b1d..2fa3bb5bb8683e2b29cfbea31bf8ecff50a8c25f:/default.nix diff --git a/default.nix b/default.nix index 265b450..41a0d79 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"; + version = "1.5.0-pre"; 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 ]; + }; }) { }