diff --git a/pkgs/by-name/sc/scriv/package.nix b/pkgs/by-name/sc/scriv/package.nix index c6d475c2a4a0..0a2e3177283f 100644 --- a/pkgs/by-name/sc/scriv/package.nix +++ b/pkgs/by-name/sc/scriv/package.nix @@ -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 =