python3Packages.objax: init at 1.4.0

This commit is contained in:
Alexander Tsvyashchenko 2021-12-30 18:16:57 +01:00 committed by Jonathan Ringer
parent c5c77cf5f7
commit da7010ee7d
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, jax
, jaxlib
, numpy
, parameterized
, pillow
, scipy
, tensorflow-tensorboard_2 ? null
}:
buildPythonPackage rec {
pname = "objax";
version = "1.4.0";
src = fetchFromGitHub {
owner = "google";
repo = "objax";
rev = "v${version}";
sha256 = "09gm61ghn5mi92q5mhx22mcv6aa6z78jsrnfar1hd3nwwyn9dq42";
};
propagatedBuildInputs = [
jax
jaxlib
numpy
parameterized
pillow
scipy
tensorflow-tensorboard_2
];
pythonImportsCheck = [
"objax"
];
meta = with lib; {
description = "Objax is a machine learning framework that provides an Object Oriented layer for JAX.";
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" ];
};
}

View file

@ -5460,6 +5460,8 @@ in {
obfsproxy = callPackage ../development/python-modules/obfsproxy { };
objax = callPackage ../development/python-modules/objax { };
objgraph = callPackage ../development/python-modules/objgraph {
# requires both the graphviz package and python package
graphvizPkgs = pkgs.graphviz;