scriv: fix tests by patching fixture

scriv build was broken due to the test fixture adding a deprecated
argument to Click CliRunner. This broke tests and the whole package
build.

The issue was already resolved upstream, but not yet incorporated into a
release. Patching for now.
This commit is contained in:
Trolli Schmittlauch
2025-12-03 00:27:04 +01:00
parent aee85ce69c
commit bb8008cfff
+9
View File
@@ -6,6 +6,7 @@
git,
scriv,
testers,
fetchpatch,
}:
python3.pkgs.buildPythonApplication rec {
@@ -18,6 +19,14 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-fBqL5jUdA2kuXnV4Te6g2PEbLJD5G+GLD7OjdVVbUl4=";
};
patches = [
# fix tests by removing deprecated Click parameter from fixture
(fetchpatch {
url = "https://github.com/nedbat/scriv/commit/04ac45da9e1adb24a95ad9643099fe537b3790fd.diff";
hash = "sha256-Gle3zWC/WypGHsKmVlqedRAZVWsBjGpzMq3uKuG9+SY=";
})
];
build-system = with python3.pkgs; [ setuptools ];
dependencies =