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";
10 { buildPythonPackage, setuptools, fetchgit, git, backoff, mypy, }:
11 buildPythonPackage rec {
15 url = "https://git.scottworley.com/pub/git/git-cache";
17 hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
20 build-system = [ setuptools ];
21 propagatedBuildInputs = [ backoff ];
22 "${checkInputsName}" = [ git mypy ];
24 checkPhase = "./test.sh";
27 in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, setuptools, nix
28 , git, autopep8, mypy, pylint, git-cache, }:
29 buildPythonPackage rec {
32 src = lib.cleanSource ./.;
34 build-system = [ setuptools ];
35 propagatedBuildInputs = [ git-cache ];
36 "${checkInputsName}" = [ nix git mypy ]
37 ++ lib.optionals lint [ autopep8 pylint ];
39 checkPhase = "./test.sh";
41 description = "A replacement for `nix-channel --update`";
42 homepage = "https://git.scottworley.com/pinch";
43 license = pkgs.lib.licenses.gpl3;
44 maintainers = with pkgs.lib.maintainers; [ chkno ];
48 pkgs.python3Packages.git-cache or (pkgs.python3Packages.callPackage
49 git-cache-fallback { });