lol

rlcard: patch distutils

Dennis 4622ddb9 869ad3ec

+11 -3
+11 -3
pkgs/development/python-modules/rlcard/default.nix
··· 9 termcolor, 10 pytestCheckHook, 11 torch, 12 - pythonAtLeast, 13 }: 14 15 buildPythonPackage rec { ··· 23 tag = version; 24 hash = "sha256-SWj6DBItQzSM+nioV54a350Li7tbBaVXsQxNAqVgB0k="; 25 }; 26 27 build-system = [ 28 setuptools ··· 70 changelog = "https://github.com/datamllab/rlcard/releases/tag/${version}"; 71 license = licenses.mit; 72 maintainers = with maintainers; [ GaetanLepage ]; 73 - # Relies on deprecated distutils 74 - broken = pythonAtLeast "3.12"; 75 }; 76 }
··· 9 termcolor, 10 pytestCheckHook, 11 torch, 12 + fetchpatch2, 13 }: 14 15 buildPythonPackage rec { ··· 23 tag = version; 24 hash = "sha256-SWj6DBItQzSM+nioV54a350Li7tbBaVXsQxNAqVgB0k="; 25 }; 26 + 27 + patches = [ 28 + # Remove distutils to make it compatible with Python 3.12 29 + # https://github.com/datamllab/rlcard/pull/323 30 + (fetchpatch2 { 31 + name = "remove-distutils.patch"; 32 + url = "https://github.com/datamllab/rlcard/commit/e44378157aaf229ffe2aaef9fafe500c2844045e.patch"; 33 + hash = "sha256-aQS4d9ETj6pDv26G77mC+0xHQMA2hjspAxtAyz0rA6Y="; 34 + }) 35 + ]; 36 37 build-system = [ 38 setuptools ··· 80 changelog = "https://github.com/datamllab/rlcard/releases/tag/${version}"; 81 license = licenses.mit; 82 maintainers = with maintainers; [ GaetanLepage ]; 83 }; 84 }