about summary refs log tree commit diff
path: root/pkgs/development/python-modules/objax/default.nix
blob: fb48f9141e2a88737125edf1f4ab9e8dc57234ae (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
{ 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" ];
  };
}