]>
Commit | Line | Data |
---|---|---|
bef7ce53 | 1 | { pkgs ? import <nixpkgs> { }, lint ? false }: |
f36d5c6f | 2 | |
604501ec | 3 | pkgs.python3Packages.callPackage |
f36d5c6f | 4 | ({ lib, buildPythonPackage, nix, git, backoff, autopep8, mypy, pylint, }: |
bef7ce53 SW |
5 | buildPythonPackage rec { |
6 | pname = "git-cache"; | |
bc6c850d | 7 | version = "1.4.2"; |
bef7ce53 | 8 | src = lib.cleanSource ./.; |
f36d5c6f | 9 | propagatedBuildInputs = [ backoff ]; |
bef7ce53 SW |
10 | checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ]; |
11 | doCheck = true; | |
12 | checkPhase = "./test.sh"; | |
50685beb SW |
13 | meta = { |
14 | description = "Cache git content locally"; | |
15 | homepage = "https://git.scottworley.com/git-cache"; | |
16 | license = pkgs.lib.licenses.gpl3; | |
17 | maintainers = with pkgs.lib.maintainers; [ chkno ]; | |
18 | }; | |
604501ec | 19 | }) { } |