python311Packages.rlax: fix build
This commit is contained in:
parent
30535095d5
commit
f1166a3501
1 changed files with 31 additions and 17 deletions
|
@ -1,39 +1,53 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, absl-py
|
||||||
, chex
|
, chex
|
||||||
, jaxlib
|
, distrax
|
||||||
, tensorflow-probability
|
|
||||||
, optax
|
|
||||||
, dm-haiku
|
|
||||||
, bsuite
|
|
||||||
, frozendict
|
|
||||||
, pytestCheckHook
|
|
||||||
, dm-env
|
, dm-env
|
||||||
, distrax }:
|
, jax
|
||||||
|
, jaxlib
|
||||||
|
, numpy
|
||||||
|
, tensorflow-probability
|
||||||
|
, dm-haiku
|
||||||
|
, optax
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rlax";
|
pname = "rlax";
|
||||||
version = "0.1.6";
|
version = "0.1.6";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "google-deepmind";
|
||||||
hash = "sha256-C3nFOv/zxvAoz6WZ0RAZffzEbxIx/XrGabO4QPxrik8=";
|
repo = "rlax";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-v2Lbzya+E9d7tlUVlQQa4fuPp2q3E309Qvyt70mcdb0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
patches = [
|
||||||
|
(fetchpatch { # Follow chex API change (https://github.com/google-deepmind/chex/pull/52)
|
||||||
|
name = "replace-deprecated-chex-assertions";
|
||||||
|
url = "https://github.com/google-deepmind/rlax/commit/30e7913a1102667137654d6e652a6c4b9e9ba1f4.patch";
|
||||||
|
hash = "sha256-OPnuTKEtwZ28hzR1660v3DcktxTYjhR1xYvFbQvOhgs=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
absl-py
|
||||||
chex
|
chex
|
||||||
jaxlib
|
|
||||||
distrax
|
distrax
|
||||||
|
dm-env
|
||||||
|
jax
|
||||||
|
jaxlib
|
||||||
|
numpy
|
||||||
tensorflow-probability
|
tensorflow-probability
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
bsuite
|
|
||||||
dm-env
|
|
||||||
dm-haiku
|
dm-haiku
|
||||||
frozendict
|
|
||||||
optax
|
optax
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue