3 fallback-git-cache = self.python3Packages.callPackage
4 ({ buildPythonPackage, fetchgit, setuptools, git, backoff, mypy, }:
5 buildPythonPackage rec {
9 url = "https://git.scottworley.com/pub/git/git-cache";
11 hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
14 build-system = [ setuptools ];
15 propagatedBuildInputs = [ backoff ];
16 nativeCheckInputs = [ git mypy ];
18 checkPhase = "./test.sh";
21 fallback-pinch = self.python3Packages.callPackage
22 ({ buildPythonPackage, fetchgit, setuptools, nix, git, mypy, git-cache, }:
23 buildPythonPackage rec {
27 url = "https://git.scottworley.com/pub/git/pinch";
29 hash = "sha256-UB1hAEX7bD2TfdDv5EOWH1aaLluvzvpW80EjdCBuCCU=";
32 build-system = [ setuptools ];
33 propagatedBuildInputs = [ git-cache ];
34 nativeCheckInputs = [ nix git mypy ];
36 checkPhase = "./test.sh";
37 }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };
39 in { pinch = super.pinch or fallback-pinch; }