lol

rlcard: patch distutils

Dennis 4622ddb9 869ad3ec

+11 -3
+11 -3
pkgs/development/python-modules/rlcard/default.nix
··· 9 9 termcolor, 10 10 pytestCheckHook, 11 11 torch, 12 - pythonAtLeast, 12 + fetchpatch2, 13 13 }: 14 14 15 15 buildPythonPackage rec { ··· 23 23 tag = version; 24 24 hash = "sha256-SWj6DBItQzSM+nioV54a350Li7tbBaVXsQxNAqVgB0k="; 25 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 + ]; 26 36 27 37 build-system = [ 28 38 setuptools ··· 70 80 changelog = "https://github.com/datamllab/rlcard/releases/tag/${version}"; 71 81 license = licenses.mit; 72 82 maintainers = with maintainers; [ GaetanLepage ]; 73 - # Relies on deprecated distutils 74 - broken = pythonAtLeast "3.12"; 75 83 }; 76 84 }