rlcard: patch distutils
This commit is contained in:
parent
869ad3ecc1
commit
4622ddb9cb
@ -9,7 +9,7 @@
|
||||
termcolor,
|
||||
pytestCheckHook,
|
||||
torch,
|
||||
pythonAtLeast,
|
||||
fetchpatch2,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -24,6 +24,16 @@ buildPythonPackage rec {
|
||||
hash = "sha256-SWj6DBItQzSM+nioV54a350Li7tbBaVXsQxNAqVgB0k=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Remove distutils to make it compatible with Python 3.12
|
||||
# https://github.com/datamllab/rlcard/pull/323
|
||||
(fetchpatch2 {
|
||||
name = "remove-distutils.patch";
|
||||
url = "https://github.com/datamllab/rlcard/commit/e44378157aaf229ffe2aaef9fafe500c2844045e.patch";
|
||||
hash = "sha256-aQS4d9ETj6pDv26G77mC+0xHQMA2hjspAxtAyz0rA6Y=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
@ -70,7 +80,5 @@ buildPythonPackage rec {
|
||||
changelog = "https://github.com/datamllab/rlcard/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
# Relies on deprecated distutils
|
||||
broken = pythonAtLeast "3.12";
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user