Merge pull request #170073 from uri-canva/remove
python3Packages.dm-sonnet, python3Packages.graph_nets: remove
This commit is contained in:
commit
3c632ea1f6
8 changed files with 5 additions and 170 deletions
|
@ -1,91 +0,0 @@
|
||||||
{ lib
|
|
||||||
, fetchFromGitHub
|
|
||||||
, bazel_0_26
|
|
||||||
, buildBazelPackage
|
|
||||||
, buildPythonPackage
|
|
||||||
, git
|
|
||||||
, python
|
|
||||||
, six
|
|
||||||
, absl-py
|
|
||||||
, semantic-version
|
|
||||||
, contextlib2
|
|
||||||
, wrapt
|
|
||||||
, tensorflow
|
|
||||||
, tensorflow-probability
|
|
||||||
, tensorflow-estimator
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "1.33";
|
|
||||||
|
|
||||||
# first build all binaries and generate setup.py using bazel
|
|
||||||
bazel-build = buildBazelPackage {
|
|
||||||
bazel = bazel_0_26;
|
|
||||||
|
|
||||||
name = "dm-sonnet-bazel-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "deepmind";
|
|
||||||
repo = "sonnet";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "1nqsja1s8jrkq6v1whgh7smk17313mjr9vs3k5c1m8px4yblzhqc";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
git # needed to fetch the bazel deps (protobuf in particular)
|
|
||||||
];
|
|
||||||
|
|
||||||
# see https://github.com/deepmind/sonnet/blob/master/docs/INSTALL.md
|
|
||||||
bazelTarget = ":install";
|
|
||||||
|
|
||||||
fetchAttrs = {
|
|
||||||
sha256 = "09dzxs2v5wpiaxrz7qj257q1fbx0gxwbk0jyx58n81m5kys7yj9k";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildAttrs = {
|
|
||||||
preBuild = ''
|
|
||||||
patchShebangs .
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
# do not generate a wheel, instead just copy the generated files to $out to be installed by buildPythonPackage
|
|
||||||
sed -i 's,.*bdist_wheel.*,cp -rL . "$out"; exit 0,' bazel-bin/install
|
|
||||||
|
|
||||||
# the target directory "dist" does not actually matter since we're not generating a wheel
|
|
||||||
bazel-bin/install dist
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# now use pip to install the package prepared by bazel
|
|
||||||
in buildPythonPackage {
|
|
||||||
pname = "dm-sonnet";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = bazel-build;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
six
|
|
||||||
absl-py
|
|
||||||
semantic-version
|
|
||||||
contextlib2
|
|
||||||
wrapt
|
|
||||||
tensorflow
|
|
||||||
tensorflow-probability
|
|
||||||
tensorflow-estimator
|
|
||||||
];
|
|
||||||
|
|
||||||
# not sure how to properly run the real test suite -- through bazel?
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -c "import sonnet"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "TensorFlow-based neural network library";
|
|
||||||
homepage = "https://sonnet.dev";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ timokau ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
broken = true; # depends on older TensorFlow version than is currently packaged
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, tensorflow
|
|
||||||
, absl-py
|
|
||||||
, dm-sonnet
|
|
||||||
, networkx
|
|
||||||
, numpy
|
|
||||||
, setuptools
|
|
||||||
, six
|
|
||||||
, future
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "graph_nets";
|
|
||||||
version = "1.1.0";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "278a040674bef295aaf8bb5b0d1b3f207144dc68f0bcfe3f14912b9b85eb0927";
|
|
||||||
};
|
|
||||||
|
|
||||||
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";
|
|
||||||
homepage = "https://github.com/deepmind/graph_nets";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ timokau ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -279,12 +279,7 @@ stdenv'.mkDerivation rec {
|
||||||
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
||||||
downstream = recurseIntoAttrs ({
|
downstream = recurseIntoAttrs ({
|
||||||
inherit bazel-watcher;
|
inherit bazel-watcher;
|
||||||
}
|
});
|
||||||
# dm-sonnet is only packaged for linux
|
|
||||||
// (lib.optionalAttrs stdenv.isLinux {
|
|
||||||
# TODO(timokau) dm-sonnet is broken currently
|
|
||||||
# dm-sonnet-linux = python3.pkgs.dm-sonnet;
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# update the list of workspace dependencies
|
# update the list of workspace dependencies
|
||||||
|
|
|
@ -280,12 +280,7 @@ stdenv'.mkDerivation rec {
|
||||||
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
||||||
downstream = recurseIntoAttrs ({
|
downstream = recurseIntoAttrs ({
|
||||||
inherit bazel-watcher;
|
inherit bazel-watcher;
|
||||||
}
|
});
|
||||||
# dm-sonnet is only packaged for linux
|
|
||||||
// (lib.optionalAttrs stdenv.isLinux {
|
|
||||||
# TODO(timokau) dm-sonnet is broken currently
|
|
||||||
# dm-sonnet-linux = python3.pkgs.dm-sonnet;
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# update the list of workspace dependencies
|
# update the list of workspace dependencies
|
||||||
|
|
|
@ -303,12 +303,7 @@ stdenv.mkDerivation rec {
|
||||||
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
||||||
downstream = recurseIntoAttrs ({
|
downstream = recurseIntoAttrs ({
|
||||||
inherit bazel-watcher;
|
inherit bazel-watcher;
|
||||||
}
|
});
|
||||||
# dm-sonnet is only packaged for linux
|
|
||||||
// (lib.optionalAttrs stdenv.isLinux {
|
|
||||||
# TODO(timokau) dm-sonnet is broken currently
|
|
||||||
# dm-sonnet-linux = python3.pkgs.dm-sonnet;
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# update the list of workspace dependencies
|
# update the list of workspace dependencies
|
||||||
|
|
|
@ -338,12 +338,7 @@ stdenv.mkDerivation rec {
|
||||||
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
||||||
downstream = recurseIntoAttrs ({
|
downstream = recurseIntoAttrs ({
|
||||||
inherit bazel-watcher;
|
inherit bazel-watcher;
|
||||||
}
|
});
|
||||||
# dm-sonnet is only packaged for linux
|
|
||||||
// (lib.optionalAttrs stdenv.isLinux {
|
|
||||||
# TODO(timokau) dm-sonnet is broken currently
|
|
||||||
# dm-sonnet-linux = python3.pkgs.dm-sonnet;
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
src_for_updater = stdenv.mkDerivation rec {
|
src_for_updater = stdenv.mkDerivation rec {
|
||||||
|
|
|
@ -300,12 +300,7 @@ stdenv.mkDerivation rec {
|
||||||
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
# fixed-output hashes of the fetch phase need to be spot-checked manually
|
||||||
downstream = recurseIntoAttrs ({
|
downstream = recurseIntoAttrs ({
|
||||||
inherit bazel-watcher;
|
inherit bazel-watcher;
|
||||||
}
|
});
|
||||||
# dm-sonnet is only packaged for linux
|
|
||||||
// (lib.optionalAttrs stdenv.isLinux {
|
|
||||||
# TODO(timokau) dm-sonnet is broken currently
|
|
||||||
# dm-sonnet-linux = python3.pkgs.dm-sonnet;
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
src_for_updater = stdenv.mkDerivation rec {
|
src_for_updater = stdenv.mkDerivation rec {
|
||||||
|
|
|
@ -2408,8 +2408,6 @@ in {
|
||||||
|
|
||||||
dm-haiku = callPackage ../development/python-modules/dm-haiku { };
|
dm-haiku = callPackage ../development/python-modules/dm-haiku { };
|
||||||
|
|
||||||
dm-sonnet = callPackage ../development/python-modules/dm-sonnet { };
|
|
||||||
|
|
||||||
dm-tree = callPackage ../development/python-modules/dm-tree {
|
dm-tree = callPackage ../development/python-modules/dm-tree {
|
||||||
abseil-cpp = pkgs.abseil-cpp.override {
|
abseil-cpp = pkgs.abseil-cpp.override {
|
||||||
cxxStandard = "14";
|
cxxStandard = "14";
|
||||||
|
@ -3586,8 +3584,6 @@ in {
|
||||||
|
|
||||||
graphite-web = callPackage ../development/python-modules/graphite-web { };
|
graphite-web = callPackage ../development/python-modules/graphite-web { };
|
||||||
|
|
||||||
graph_nets = callPackage ../development/python-modules/graph_nets { };
|
|
||||||
|
|
||||||
graphene = callPackage ../development/python-modules/graphene { };
|
graphene = callPackage ../development/python-modules/graphene { };
|
||||||
|
|
||||||
graphene-django = callPackage ../development/python-modules/graphene-django { };
|
graphene-django = callPackage ../development/python-modules/graphene-django { };
|
||||||
|
|
Loading…
Reference in a new issue