python312Packages.matchpy: unbreak

This commit is contained in:
Peder Bergebakken Sundt 2024-04-18 11:08:59 +02:00
parent 5d64a42a14
commit 8541bf7486

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, hopcroftkarp
, multiset
, pytestCheckHook
@ -22,6 +23,15 @@ buildPythonPackage rec {
hash = "sha256-n5rXIjqVQZzEbfIZVQiGLh2PR1DHAJ9gumcrbvwnasA=";
};
patches = [
# https://github.com/HPAC/matchpy/pull/77
(fetchpatch {
name = "fix-versioneer-py312.patch";
url = "https://github.com/HPAC/matchpy/commit/965d7c39689b9f2473a78ed06b83f2be701e234d.patch";
hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
})
];
postPatch = ''
sed -i '/pytest-runner/d' setup.cfg