]> git.scottworley.com Git - git-cache/blob - default.nix
265b45096492e20dd95327f8722ad74ebe32e6b9
[git-cache] / default.nix
1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2
3 pkgs.python3Packages.callPackage
4 ({ lib, buildPythonPackage, nix, git, backoff, autopep8, mypy, pylint, }:
5 buildPythonPackage rec {
6 pname = "git-cache";
7 version = "1.4.2";
8 src = lib.cleanSource ./.;
9 propagatedBuildInputs = [ backoff ];
10 checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ];
11 doCheck = true;
12 checkPhase = "./test.sh";
13 }) { }