python312Packages.opt-einsum: fix build with python312
This commit is contained in:
parent
d903bdedd6
commit
ad58d74857
1 changed files with 16 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
|
@ -9,7 +11,7 @@
|
|||
buildPythonPackage rec {
|
||||
version = "3.3.0";
|
||||
pname = "opt-einsum";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
|
@ -19,6 +21,19 @@ buildPythonPackage rec {
|
|||
hash = "sha256-WfZHX3e7w33PfNdIUZwOxgci6R5jyhFOaIIcDFSkZUk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/dgasmith/opt_einsum/pull/208
|
||||
(fetchpatch {
|
||||
name = "python312-compatibility.patch";
|
||||
url = "https://github.com/dgasmith/opt_einsum/commit/0beacf96923bbb2dd1939a9c59398a38ce7a11b1.patch";
|
||||
hash = "sha256-dmmEzhy17huclo1wOubpBUDc2L7vqEU5b/6a5loM47A=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue