python311Packages.manuel: fix by patching test

This commit is contained in:
Vladimír Čunát 2023-03-11 09:23:51 +01:00
parent 782a08984b
commit 5c84dd1881
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,6 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, python
, isPy27
, six
, zope_testing
@ -16,6 +18,16 @@ buildPythonPackage rec {
hash = "sha256-A5Wq32mR+SSseVz61Z2l3AYYcyqMxYrQ9HSWWrco9/Q=";
};
patches = lib.optionals (lib.versionAtLeast python.version "3.11") [
# https://github.com/benji-york/manuel/pull/32
# Applying conditionally until upstream arrives at some general solution.
(fetchpatch {
name = "TextTestResult-python311.patch";
url = "https://github.com/benji-york/manuel/commit/d9f12d03e39bb76e4bb3ba43ad51af6d3e9d45c0.diff";
hash = "sha256-k0vBtxEixoI1INiKtc7Js3Ai00iGAcCvCFI1ZIBRPvQ=";
})
];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ zope_testing ];