- fallback-pinch = self.python3Packages.callPackage
- ({ buildPythonPackage, fetchgit, nix, git, makeWrapper, mypy, git-cache, }:
- buildPythonPackage rec {
- pname = "pinch";
- version = "3.0.4";
- src = fetchgit {
- url = "https://scottworley.com/pinch.git";
- rev = "v${version}";
- sha256 = "1i7v9vcjk599ffzwf3nq38y811cm6rnxriarqgpp3kwy52r91mi2";
- };
- buildInputs = [ makeWrapper ];
- propagatedBuildInputs = [ git-cache ];
- checkInputs = [ nix git mypy ];
- postInstall = ''
- wrapProgram "$out/bin/pinch" --prefix PATH : ${nix}/bin
- '';
- doCheck = true;
- checkPhase = "./test.sh";
- }) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };
+ fallback-pinch = self.python3Packages.callPackage (
+ {
+ buildPythonPackage,
+ fetchgit,
+ setuptools,
+ nix,
+ git,
+ mypy,
+ git-cache,
+ }:
+ buildPythonPackage rec {
+ pname = "pinch";
+ version = "3.3.2";
+ src = fetchgit {
+ url = "https://git.scottworley.com/pub/git/pinch";
+ rev = "v${version}";
+ hash = "sha256-UB1hAEX7bD2TfdDv5EOWH1aaLluvzvpW80EjdCBuCCU=";
+ };
+ pyproject = true;
+ build-system = [ setuptools ];
+ propagatedBuildInputs = [ git-cache ];
+ nativeCheckInputs = [
+ nix
+ git
+ mypy
+ ];
+ doCheck = true;
+ checkPhase = "./test.sh";
+ }
+ ) { git-cache = self.python3Packages.git-cache or fallback-git-cache; };