python313Packages.humanfriendly: replace pipes module usage

It was deprecated in 3.11 and removed in 3.13.
This commit is contained in:
Martin Weinelt 2024-06-19 00:31:46 +02:00
parent 77cf670e7c
commit d6670b9d92
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
}:
buildPythonPackage rec {
@ -14,6 +15,14 @@ buildPythonPackage rec {
sha256 = "6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc";
};
patches = [
(fetchpatch2 {
# https://github.com/xolox/python-humanfriendly/pull/75
url = "https://github.com/musicinmybrain/python-humanfriendly/commit/13d05b8057010121acd2a402a337ef4ee5834062.patch";
hash = "sha256-m7cySiIx0gNhh6KKhT71DJFOtFu2Copk9ic2yaiCulk=";
})
];
# humanfriendly tests depends on coloredlogs which itself depends on
# humanfriendly. This lead to infinite recursion when trying to
# build this package so we have to disable the test suite :(