5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
49 lines
900 B
Nix
49 lines
900 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, jax
|
|
, jaxlib
|
|
, numpy
|
|
, parameterized
|
|
, pillow
|
|
, scipy
|
|
, tensorboard
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "objax";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "objax";
|
|
rev = "v${version}";
|
|
hash = "sha256-1/XmxFZfU+XMD0Mlcv4xTUYZDwltAx1bZOlPuKWQQC0=";
|
|
};
|
|
|
|
# Avoid propagating the dependency on `jaxlib`, see
|
|
# https://github.com/NixOS/nixpkgs/issues/156767
|
|
buildInputs = [
|
|
jaxlib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
jax
|
|
numpy
|
|
parameterized
|
|
pillow
|
|
scipy
|
|
tensorboard
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|