]> git.scottworley.com Git - auto-upgrade-with-pinch/blob - overlays/pinch.nix
25.11: pinch: 3.3.1 → 3.3.2
[auto-upgrade-with-pinch] / overlays / pinch.nix
1 self: super:
2 let
3 fallback-git-cache = self.python3Packages.callPackage
4 ({ buildPythonPackage, fetchgit, setuptools, git, backoff, mypy, }:
5 buildPythonPackage rec {
6 pname = "git-cache";
7 version = "1.5.0";
8 src = fetchgit {
9 url = "https://git.scottworley.com/pub/git/git-cache";
10 rev = "v${version}";
11 hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
12 };
13 pyproject = true;
14 build-system = [ setuptools ];
15 propagatedBuildInputs = [ backoff ];
16 nativeCheckInputs = [ git mypy ];
17 doCheck = true;
18 checkPhase = "./test.sh";
19 }) { };
20
21 fallback-pinch = self.python3Packages.callPackage
22 ({ buildPythonPackage, fetchgit, setuptools, nix, git, mypy, git-cache, }:
23 buildPythonPackage rec {
24 pname = "pinch";
25 version = "3.3.2";
26 src = fetchgit {
27 url = "https://git.scottworley.com/pub/git/pinch";
28 rev = "v${version}";
29 hash = "sha256-UB1hAEX7bD2TfdDv5EOWH1aaLluvzvpW80EjdCBuCCU=";
30 };
31 pyproject = true;
32 build-system = [ setuptools ];
33 propagatedBuildInputs = [ git-cache ];
34 nativeCheckInputs = [ nix git mypy ];
35 doCheck = true;
36 checkPhase = "./test.sh";
37 }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };
38
39 in { pinch = super.pinch or fallback-pinch; }