python311Packages.bsuite: include patch that fixes deprecated use of np.int

This commit is contained in:
Gaetan Lepage 2024-01-10 09:16:38 +01:00
parent ee1c021236
commit 53b8616b2d

View File

@ -1,6 +1,7 @@
{ lib
, fetchPypi
, buildPythonPackage
, fetchpatch
, frozendict
, termcolor
, matplotlib
@ -35,6 +36,13 @@ let bsuite = buildPythonPackage rec {
hash = "sha256-ak9McvXl7Nz5toUaPaRaJek9lurxiQiIW209GnZEjX0=";
};
patches = [
(fetchpatch { # Convert np.int -> np.int32 since np.int is deprecated (https://github.com/google-deepmind/bsuite/pull/48)
url = "https://github.com/google-deepmind/bsuite/pull/48/commits/f8d81b2f1c27ef2c8c71ae286001ed879ea306ab.patch";
hash = "sha256-FXtvVS+U8brulq8Z27+yWIimB+kigGiUOIv1SHb1TA8=";
})
];
propagatedBuildInputs = [
absl-py
dm-env