python312Packages.testfixtures: fix build with python3.12

This commit is contained in:
natsukium 2023-12-21 00:41:06 +09:00 committed by Martin Weinelt
parent a889f921cd
commit 351014152e
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, mock
, pytestCheckHook
@ -28,6 +29,15 @@ buildPythonPackage rec {
hash = "sha256-gHdK7LAklFgnWreD9TCT++dXlf8rMhjSLOP/8KEsTaY=";
};
patches = [
# https://github.com/simplistix/testfixtures/pull/188
(fetchpatch {
name = "python3.12-compatibility.patch";
url = "https://github.com/simplistix/testfixtures/commit/2b80b195e30e12c739dc4f98e9de17dec8f3558a.patch";
hash = "sha256-LrC0uI4k3F6ZGTqbKi319tRbVk5557xbyzQN36Y1160=";
})
];
nativeCheckInputs = [
mock
pytestCheckHook