2019-04-12 17:25:25 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, tensorflow
|
|
|
|
, absl-py
|
|
|
|
, dm-sonnet
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, future
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graph_nets";
|
2020-06-06 07:47:11 +01:00
|
|
|
version = "1.1.0";
|
2019-04-12 17:25:25 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:11 +01:00
|
|
|
sha256 = "278a040674bef295aaf8bb5b0d1b3f207144dc68f0bcfe3f14912b9b85eb0927";
|
2019-04-12 17:25:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/deepmind/graph_nets/issues/63
|
|
|
|
sed -i 's/dm-sonnet==1.23/dm-sonnet/' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
tensorflow
|
|
|
|
absl-py
|
|
|
|
dm-sonnet
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
future
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build Graph Nets in Tensorflow";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/deepmind/graph_nets";
|
2019-04-12 17:25:25 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ timokau ];
|
|
|
|
};
|
|
|
|
}
|