18 buildPythonPackage rec {
21 format = "setuptools";
23 disabled = pythonOlder "3.6";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-WkloUbqSyPG3cbLG8ktsjdluACkCbUZ7t6rYWst8rs8=";
34 name = "replace-np-bool-with-np-bool_.patch";
35 url = "https://github.com/deepmind/sonnet/commit/df5d099d4557a9a81a0eb969e5a81ed917bcd612.patch";
36 hash = "sha256-s7abl83osD4wa0ZhqgDyjqQ3gagwGYCdQifwFqhNp34=";
40 propagatedBuildInputs = [
46 ] ++ etils.optional-dependencies.epath;
48 optional-dependencies = {
49 tensorflow = [ tensorflow ];
59 pythonImportsCheck = [ "sonnet" ];
62 description = "Library for building neural networks in TensorFlow";
63 homepage = "https://github.com/deepmind/sonnet";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ onny ];