]>
Commit | Line | Data |
---|---|---|
54354067 SW |
1 | self: super: |
2 | let | |
3 | ||
54354067 SW |
4 | fallback-git-cache = self.python3Packages.callPackage |
5 | ({ buildPythonPackage, fetchgit, git, backoff, mypy, }: | |
6 | buildPythonPackage rec { | |
7 | pname = "git-cache"; | |
7e0a3574 | 8 | version = "1.3.1"; |
54354067 | 9 | src = fetchgit { |
bbc804af | 10 | url = "https://git.scottworley.com/pub/git/git-cache"; |
54354067 | 11 | rev = "v${version}"; |
7e0a3574 | 12 | sha256 = "0awz7f6avzw9fk9gp1kadj0nbmf1s60qic9zb6ww92zig3khg12k"; |
54354067 SW |
13 | }; |
14 | propagatedBuildInputs = [ backoff ]; | |
15 | checkInputs = [ git mypy ]; | |
16 | doCheck = true; | |
17 | checkPhase = "./test.sh"; | |
3ec7fc1a | 18 | }) { }; |
54354067 SW |
19 | |
20 | fallback-pinch = self.python3Packages.callPackage | |
c3a699cf | 21 | ({ buildPythonPackage, fetchgit, nix_2_3, git, makeWrapper, mypy, git-cache, }: |
c1a6f7a3 SW |
22 | buildPythonPackage rec { |
23 | pname = "pinch"; | |
c3a699cf | 24 | version = "3.0.9"; |
c1a6f7a3 | 25 | src = fetchgit { |
bbc804af | 26 | url = "https://git.scottworley.com/pub/git/pinch"; |
54354067 | 27 | rev = "v${version}"; |
c3a699cf | 28 | sha256 = "sha256-D1XC8pmemdOpIEWvS0VH9Fguvp92FqpQfJj2TudfwRw="; |
c1a6f7a3 | 29 | }; |
d0a8d123 | 30 | buildInputs = [ makeWrapper ]; |
54354067 | 31 | propagatedBuildInputs = [ git-cache ]; |
c3a699cf | 32 | checkInputs = [ nix_2_3 git mypy ]; |
d0a8d123 | 33 | postInstall = '' |
c3a699cf | 34 | wrapProgram "$out/bin/pinch" --prefix PATH : ${nix_2_3}/bin |
d0a8d123 | 35 | ''; |
c1a6f7a3 SW |
36 | doCheck = true; |
37 | checkPhase = "./test.sh"; | |
54354067 SW |
38 | }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; }; |
39 | ||
40 | in { pinch = super.pinch or fallback-pinch; } |