3 fallback-git-cache = self.python3Packages.callPackage
4 ({ buildPythonPackage, fetchgit, git, backoff, mypy, }:
5 buildPythonPackage rec {
9 url = "https://git.scottworley.com/pub/git/git-cache";
11 hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
13 propagatedBuildInputs = [ backoff ];
14 nativeCheckInputs = [ git mypy ];
16 checkPhase = "./test.sh";
19 fallback-pinch = self.python3Packages.callPackage
20 ({ buildPythonPackage, fetchgit, nix, git, mypy, git-cache, }:
21 buildPythonPackage rec {
25 url = "https://git.scottworley.com/pub/git/pinch";
27 hash = "sha256-fVlHwQX2o8GYZ/Oq5/m5v2L+KNpFoKWD8MbH4A3cV0s=";
29 propagatedBuildInputs = [ git-cache ];
30 nativeCheckInputs = [ nix git mypy ];
32 checkPhase = "./test.sh";
33 }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };
35 in { pinch = super.pinch or fallback-pinch; }