]> git.scottworley.com Git - auto-upgrade-with-pinch/blame_incremental - overlays/pinch.nix
pinch: 3.0.9 → 3.0.10
[auto-upgrade-with-pinch] / overlays / pinch.nix
... / ...
CommitLineData
1self: super:
2let
3
4 fallback-git-cache = self.python3Packages.callPackage
5 ({ buildPythonPackage, fetchgit, git, backoff, mypy, }:
6 buildPythonPackage rec {
7 pname = "git-cache";
8 version = "1.4.2";
9 src = fetchgit {
10 url = "https://git.scottworley.com/pub/git/git-cache";
11 rev = "v${version}";
12 hash = "sha256-Z9daNCmjzaVdeG3mITRWdNM+ewUEcKy5N4/Xpdotsg0=";
13 };
14 propagatedBuildInputs = [ backoff ];
15 checkInputs = [ git mypy ];
16 doCheck = true;
17 checkPhase = "./test.sh";
18 }) { };
19
20 fallback-pinch = self.python3Packages.callPackage
21 ({ buildPythonPackage, fetchgit, nix_2_3, git, makeWrapper, mypy, git-cache, }:
22 buildPythonPackage rec {
23 pname = "pinch";
24 version = "3.0.10";
25 src = fetchgit {
26 url = "https://git.scottworley.com/pub/git/pinch";
27 rev = "v${version}";
28 hash = "sha256-U3TOTfYvM1ONF9DJrWxfhjVQnY7GD96ru6A2Yj01lcg=";
29 };
30 buildInputs = [ makeWrapper ];
31 propagatedBuildInputs = [ git-cache ];
32 checkInputs = [ nix_2_3 git mypy ];
33 postInstall = ''
34 wrapProgram "$out/bin/pinch" --prefix PATH : ${nix_2_3}/bin
35 '';
36 doCheck = true;
37 checkPhase = "./test.sh";
38 }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };
39
40in { pinch = super.pinch or fallback-pinch; }