01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
59 lines
1,006 B
Nix
59 lines
1,006 B
Nix
{ lib
|
|
, absl-py
|
|
, buildPythonPackage
|
|
, dm-tree
|
|
, docutils
|
|
, etils
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, pythonOlder
|
|
, tabulate
|
|
, tensorflow
|
|
, tensorflow-datasets
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dm-sonnet";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepmind";
|
|
repo = "sonnet";
|
|
rev = "v${version}";
|
|
hash = "sha256-YSMeH5ZTfP1OdLBepsxXAVczBG/ghSjCWjoz/I+TFl8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dm-tree
|
|
etils
|
|
numpy
|
|
tabulate
|
|
wrapt
|
|
] ++ etils.optional-dependencies.epath;
|
|
|
|
passthru.optional-dependencies = {
|
|
tensorflow = [
|
|
tensorflow
|
|
];
|
|
};
|
|
|
|
checkInputs = [
|
|
docutils
|
|
tensorflow-datasets
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sonnet"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for building neural networks in TensorFlow";
|
|
homepage = "https://github.com/deepmind/sonnet";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|