blob: da0a70aafb4c74ed348eb58815429b139cdad651 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, fetchFromGitHub
, buildPythonPackage
, jax
, jaxlib
, numpy
, parameterized
, pillow
, scipy
, tensorflow-tensorboard
}:
buildPythonPackage rec {
pname = "objax";
version = "1.6.0";
src = fetchFromGitHub {
owner = "google";
repo = "objax";
rev = "v${version}";
sha256 = "sha256-/6tZxVDe/3C53Re14odU9VA3mKvSj9X3/xt6bHFLHwQ=";
};
# Avoid propagating the dependency on `jaxlib`, see
# https://github.com/NixOS/nixpkgs/issues/156767
buildInputs = [
jaxlib
];
propagatedBuildInputs = [
jax
numpy
parameterized
pillow
scipy
tensorflow-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 ];
};
}
|