]> git.scottworley.com Git - auto-upgrade-with-pinch/blame - overlays/pinch.nix
pinch: 3.0.9 → 3.0.10
[auto-upgrade-with-pinch] / overlays / pinch.nix
CommitLineData
54354067
SW
1self: super:
2let
3
54354067
SW
4 fallback-git-cache = self.python3Packages.callPackage
5 ({ buildPythonPackage, fetchgit, git, backoff, mypy, }:
6 buildPythonPackage rec {
7 pname = "git-cache";
60e28cc7 8 version = "1.4.2";
54354067 9 src = fetchgit {
bbc804af 10 url = "https://git.scottworley.com/pub/git/git-cache";
54354067 11 rev = "v${version}";
60e28cc7 12 hash = "sha256-Z9daNCmjzaVdeG3mITRWdNM+ewUEcKy5N4/Xpdotsg0=";
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";
3926efa5 24 version = "3.0.10";
c1a6f7a3 25 src = fetchgit {
bbc804af 26 url = "https://git.scottworley.com/pub/git/pinch";
54354067 27 rev = "v${version}";
3926efa5 28 hash = "sha256-U3TOTfYvM1ONF9DJrWxfhjVQnY7GD96ru6A2Yj01lcg=";
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
40in { pinch = super.pinch or fallback-pinch; }