2 pkgs ? import <nixpkgs> { },
7 checkInputsAreNative = pkgs.lib.hasInfix "nativeCheckInputs" (
8 builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>
10 checkInputsName = if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
21 buildPythonPackage rec {
25 url = "https://git.scottworley.com/pub/git/git-cache";
27 hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
30 build-system = [ setuptools ];
31 propagatedBuildInputs = [ backoff ];
32 "${checkInputsName}" = [
37 checkPhase = "./test.sh";
41 pkgs.python3Packages.callPackage
54 buildPythonPackage rec {
57 src = lib.cleanSource ./.;
59 build-system = [ setuptools ];
60 propagatedBuildInputs = [ git-cache ];
61 "${checkInputsName}" = [
66 ++ lib.optionals lint [
71 checkPhase = "./test.sh";
73 description = "A replacement for `nix-channel --update`";
74 homepage = "https://git.scottworley.com/pinch";
75 license = pkgs.lib.licenses.gpl3;
76 maintainers = with pkgs.lib.maintainers; [ chkno ];
82 pkgs.python3Packages.git-cache or (pkgs.python3Packages.callPackage git-cache-fallback { });