]> git.scottworley.com Git - pinch/commitdiff
Add new nixpkgs-25.11 pyproject boilerplate
authorScott Worley <scottworley@scottworley.com>
Sun, 14 Dec 2025 09:24:46 +0000 (01:24 -0800)
committerScott Worley <scottworley@scottworley.com>
Sun, 14 Dec 2025 10:02:19 +0000 (02:02 -0800)
Changelog
default.nix

index 702eefb81e680d36ed59a7a8f4537c46204f7580..c36277ae2381aa5386adf6a7e79f6b77e9971ac9 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 ## [Unreleased]
+- Keep up with nixpkgs 25.11
 
 
 ## [3.3.1] - 2025-07-09
index c0903a198c0370ccf40f926bde241acc36575e33..6618324975220f6086fede0b85ffc33eacbd60e0 100644 (file)
@@ -6,7 +6,8 @@ let
   checkInputsName =
     if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
 
-  git-cache-fallback = { buildPythonPackage, fetchgit, git, backoff, mypy, }:
+  git-cache-fallback =
+    { buildPythonPackage, setuptools, fetchgit, git, backoff, mypy, }:
     buildPythonPackage rec {
       pname = "git-cache";
       version = "1.5.0";
@@ -15,18 +16,22 @@ let
         rev = "v${version}";
         hash = "sha256-g4TS/zX3e29Q3ThsCAX2wLLlYbi8fdux5uqAc+b/Oww=";
       };
+      pyproject = true;
+      build-system = [ setuptools ];
       propagatedBuildInputs = [ backoff ];
       "${checkInputsName}" = [ git mypy ];
       doCheck = true;
       checkPhase = "./test.sh";
     };
 
-in pkgs.python3Packages.callPackage
-({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, git-cache, }:
+in pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, setuptools, nix
+  , git, autopep8, mypy, pylint, git-cache, }:
   buildPythonPackage rec {
     pname = "pinch";
     version = "3.3.2-pre";
     src = lib.cleanSource ./.;
+    pyproject = true;
+    build-system = [ setuptools ];
     propagatedBuildInputs = [ git-cache ];
     "${checkInputsName}" = [ nix git mypy ]
       ++ lib.optionals lint [ autopep8 pylint ];