python312Packages.bsuite: add patch to replace imp

google-deepmind/bsuite#50
This commit is contained in:
Fabian Affolter 2024-04-04 10:06:03 +02:00
parent 9576c91f57
commit cebee4c513

View File

@ -37,10 +37,17 @@ let bsuite = buildPythonPackage rec {
};
patches = [
(fetchpatch { # Convert np.int -> np.int32 since np.int is deprecated (https://github.com/google-deepmind/bsuite/pull/48)
# Convert np.int -> np.int32 since np.int is deprecated, https://github.com/google-deepmind/bsuite/pull/48
(fetchpatch {
url = "https://github.com/google-deepmind/bsuite/pull/48/commits/f8d81b2f1c27ef2c8c71ae286001ed879ea306ab.patch";
hash = "sha256-FXtvVS+U8brulq8Z27+yWIimB+kigGiUOIv1SHb1TA8=";
})
# Replace imp with importlib, https://github.com/google-deepmind/bsuite/pull/50
(fetchpatch {
name = "replace-imp.patch";
url = "https://github.com/google-deepmind/bsuite/commit/d08b63655c7efa5b5bb0f35e825e17549d23e812.patch";
hash = "sha256-V5p/6edNXTpEckuSuxJ/mvfJng5yE/pfeMoYbvlNpEo=";
})
];
propagatedBuildInputs = [