forked from mirrors/nixpkgs
python3Packages.objax: fix tensorboard dependency (#156909)
Also moved `jaxlib` to `buildInputs` to avoid injecting it into dependent packages.
This commit is contained in:
parent
e5808c2f62
commit
fa7b83fa48
|
@ -7,7 +7,7 @@
|
|||
, parameterized
|
||||
, pillow
|
||||
, scipy
|
||||
, tensorflow-tensorboard_2 ? null
|
||||
, tensorflow-tensorboard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -21,14 +21,19 @@ buildPythonPackage rec {
|
|||
sha256 = "09gm61ghn5mi92q5mhx22mcv6aa6z78jsrnfar1hd3nwwyn9dq42";
|
||||
};
|
||||
|
||||
# Avoid propagating the dependency on `jaxlib`, see
|
||||
# https://github.com/NixOS/nixpkgs/issues/156767
|
||||
buildInputs = [
|
||||
jaxlib
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jax
|
||||
jaxlib
|
||||
numpy
|
||||
parameterized
|
||||
pillow
|
||||
scipy
|
||||
tensorflow-tensorboard_2
|
||||
tensorflow-tensorboard
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
@ -40,7 +45,5 @@ buildPythonPackage rec {
|
|||
homepage = "https://github.com/google/objax";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ndl ];
|
||||
# Darwin doesn't have `tensorflow-tensorboard_2` which is required by wheel deps.
|
||||
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue