python.pkgs.graph_nets: init at 1.0.3
commitd88406a43fe9a96b0e07cd3e691233af6d822b0f
authorTimo Kaufmann <timokau@zoho.com>
dateFri 12 Apr 2019, 18:25 (8 years ago)
parent11801a4
pkgs/development/python-modules/graph_nets/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, tensorflow
5+, absl-py
6+, dm-sonnet
7+, networkx
8+, numpy
9+, setuptools
10+, six
11+, future
12+}:
13+
14+buildPythonPackage rec {
15+ pname = "graph_nets";
16+ version = "1.0.3";
17+
18+ src = fetchPypi {
19+ inherit pname version;
20+ sha256 = "15cbs9smmgqz2n9mnlzdbqj3iv9iw179d2g0f9lnimdy7xl4jqdf";
21+ };
22+
23+ buildInputs = [];
24+
25+ postPatch = ''
26+ # https://github.com/deepmind/graph_nets/issues/63
27+ sed -i 's/dm-sonnet==1.23/dm-sonnet/' setup.py
28+ '';
29+
30+ propagatedBuildInputs = [
31+ tensorflow
32+ absl-py
33+ dm-sonnet
34+ networkx
35+ numpy
36+ setuptools
37+ six
38+ future
39+ ];
40+
41+ meta = with lib; {
42+ description = "Build Graph Nets in Tensorflow";
43+ homepage = https://github.com/deepmind/graph_nets;
44+ license = licenses.asl20;
45+ maintainers = with maintainers; [ timokau ];
46+ };
47+}
pkgs/top-level/python-packages.nix+2
@@ -4877,6 +4877,8 @@ in {
48774877
48784878 graphite_beacon = callPackage ../development/python-modules/graphite_beacon { };
48794879
4880+ graph_nets = callPackage ../development/python-modules/graph_nets { };
4881+
48804882 influxgraph = callPackage ../development/python-modules/influxgraph { };
48814883
48824884 graphitepager = callPackage ../development/python-modules/graphitepager { };