c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
54 lines
873 B
Nix
54 lines
873 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, numpy
|
|
, tabulate
|
|
, six
|
|
, dm-tree
|
|
, absl-py
|
|
, wrapt
|
|
, docutils
|
|
, tensorflow
|
|
, tensorflow-datasets }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dm-sonnet";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepmind";
|
|
repo = "sonnet";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-YSMeH5ZTfP1OdLBepsxXAVczBG/ghSjCWjoz/I+TFl8=";
|
|
};
|
|
|
|
buildInputs = [
|
|
absl-py
|
|
dm-tree
|
|
numpy
|
|
six
|
|
tabulate
|
|
wrapt
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
tabulate
|
|
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 ];
|
|
};
|
|
}
|