43 buildPythonPackage rec {
44 pname = "tensorflow-datasets";
47 src = fetchFromGitHub {
50 rev = "refs/tags/v${version}";
51 sha256 = "sha256-z52UZz9d1AaZklLOPbWuzByEl1hJ6ra4Hoz6eNGD+hg=";
55 # addresses https://github.com/tensorflow/datasets/issues/3673
59 propagatedBuildInputs = [
75 pythonImportsCheck = [
106 disabledTestPaths = [
107 # Sandbox violations: network access, filesystem write attempts outside of build dir, ...
108 "tensorflow_datasets/core/dataset_builder_test.py"
109 "tensorflow_datasets/core/dataset_info_test.py"
110 "tensorflow_datasets/core/features/features_test.py"
111 "tensorflow_datasets/core/github_api/github_path_test.py"
112 "tensorflow_datasets/core/utils/gcs_utils_test.py"
113 "tensorflow_datasets/scripts/cli/build_test.py"
115 # Requires `pretty_midi` which is not packaged in `nixpkgs`.
116 "tensorflow_datasets/audio/groove_test.py"
118 # Requires `crepe` which is not packaged in `nixpkgs`.
119 "tensorflow_datasets/audio/nsynth_test.py"
121 # Requires `gcld3` and `pretty_midi` which are not packaged in `nixpkgs`.
122 "tensorflow_datasets/core/lazy_imports_lib_test.py"
124 # Requires `tensorflow_io` which is not packaged in `nixpkgs`.
125 "tensorflow_datasets/image/lsun_test.py"
127 # Requires `envlogger` which is not packaged in `nixpkgs`.
128 "tensorflow_datasets/rlds/locomotion/locomotion_test.py"
129 "tensorflow_datasets/rlds/robosuite_panda_pick_place_can/robosuite_panda_pick_place_can_test.py"
131 # Fails with `TypeError: Constant constructor takes either 0 or 2 positional arguments`
132 # deep in TF AutoGraph. Doesn't reproduce in Docker with Ubuntu 22.04 => might be related
133 # to the differences in some of the dependencies?
134 "tensorflow_datasets/rl_unplugged/rlu_atari/rlu_atari_test.py"
136 # Requires `tensorflow_docs` which is not packaged in `nixpkgs` and the test is for documentation anyway.
137 "tensorflow_datasets/scripts/documentation/build_api_docs_test.py"
139 # Not a test, should not be executed.
140 "tensorflow_datasets/testing/test_utils.py"
142 # Require `gcld3` and `nltk.punkt` which are not packaged in `nixpkgs`.
143 "tensorflow_datasets/text/c4_test.py"
144 "tensorflow_datasets/text/c4_utils_test.py"
148 description = "Library of datasets ready to use with TensorFlow";
149 homepage = "https://www.tensorflow.org/datasets/overview";
150 license = licenses.asl20;
151 maintainers = with maintainers; [ ndl ];