1 { pkgs ? import <nixpkgs> { }, lint ? false }:
4 checkInputsAreNative = pkgs.lib.hasInfix "nativeCheckInputs"
5 (builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>);
7 if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
8 in pkgs.python3Packages.callPackage
9 ({ lib, buildPythonPackage, nix, git, backoff, autopep8, mypy, pylint, }:
10 buildPythonPackage rec {
12 version = "1.4.4-pre";
13 src = lib.cleanSource ./.;
14 propagatedBuildInputs = [ backoff ];
15 "${checkInputsName}" = [ nix git mypy ]
16 ++ lib.optionals lint [ autopep8 pylint ];
18 checkPhase = "./test.sh";
20 description = "Cache git content locally";
21 homepage = "https://git.scottworley.com/git-cache";
22 license = pkgs.lib.licenses.gpl3;
23 maintainers = with pkgs.lib.maintainers; [ chkno ];