Merge pull request #243010 from GaetanLepage/tensorflow-datasets-update

python3Packages.tensorflow-datasets: 4.8.2 -> 4.9.2
This commit is contained in:
Samuel Ainsworth 2023-07-20 07:51:38 -07:00 committed by GitHub
commit 56f391f69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 197 additions and 2 deletions

View file

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "jsonable";
version = "0.3.1";
src = fetchFromGitHub {
owner = "halfak";
repo = "python-jsonable";
rev = "refs/tags/${version}";
hash = "sha256-3FIzG2djSZOPDdoYeKqs3obQjgHrFtyp0sdBwZakkHA=";
};
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ nose ];
pythonImportsCheck = [ "jsonable" ];
meta = with lib; {
description = "Provides an abstract base class and utilities for defining trivially JSONable python objects";
homepage = "https://github.com/halfak/python-jsonable";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, docopt
, para
}:
buildPythonPackage rec {
pname = "mwcli";
version = "0.0.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-ADMb0P8WtXIcnGJ02R4l/TVfRewHc8ig45JurAWHGaA=";
};
# Prevent circular dependency
pythonRemoveDeps = [
"mwxml"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
docopt
para
];
# Tests require mwxml which itself depends on this package (circular dependency)
doCheck = false;
meta = with lib; {
description = "A set of helper functions and classes for mediawiki-utilities command-line utilities";
homepage = "https://github.com/mediawiki-utilities/python-mwcli";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, jsonable
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "mwtypes";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
hash = "sha256-3BF2xZZWKcEj6FmzGa5hUdTjhVMemngWBMDUyjQ045k=";
};
propagatedBuildInputs = [ jsonable ];
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ nose ];
disabledTests = [
"test_normalize_path_bad_extension"
"test_open_file"
];
pythonImportsCheck = [ "mwtypes" ];
meta = with lib; {
description = "A set of classes for working with MediaWiki data types.";
homepage = "https://github.com/mediawiki-utilities/python-mwtypes";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, jsonschema
, mwcli
, mwtypes
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "mwxml";
version = "0.3.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-CEjfDPLik3GPVUMRrPRxW9Z59jn05Sy+R9ggZYnbHTE=";
};
propagatedBuildInputs = [
jsonschema
mwcli
mwtypes
];
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ nose ];
disabledTests = [
"test_page_with_discussion"
];
pythonImportsCheck = [ "mwxml" ];
meta = with lib; {
description = "A set of utilities for processing MediaWiki XML dump data";
homepage = "https://github.com/mediawiki-utilities/python-mwxml";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "para";
version = "0.0.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-RsMjKunY6p2IbP0IzdESiSICvthkX0C2JVWXukz+8hc=";
};
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ nose ];
pythonImportsCheck = [ "para" ];
meta = with lib; {
description = "A set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks";
homepage = "https://pypi.org/project/para";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View file

@ -1,4 +1,5 @@
{ apache-beam
, array-record
, attrs
, beautifulsoup4
, buildPythonPackage
@ -19,6 +20,7 @@
, lxml
, matplotlib
, mwparserfromhell
, mwxml
, networkx
, nltk
, numpy
@ -46,13 +48,13 @@
buildPythonPackage rec {
pname = "tensorflow-datasets";
version = "4.8.2";
version = "4.9.2";
src = fetchFromGitHub {
owner = "tensorflow";
repo = "datasets";
rev = "refs/tags/v${version}";
hash = "sha256-FYFk53WKNQTSrnGGiA6cn9LffbMJkZtjlGuOF52Og7c=";
hash = "sha256-FKquhuk5hVBH9Im2RrIwgmosgqkoJHj0ESR2BmAOlbI=";
};
patches = [
@ -61,6 +63,7 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
array-record
attrs
dill
dm-tree
@ -95,6 +98,7 @@ buildPythonPackage rec {
lxml
matplotlib
mwparserfromhell
mwxml
networkx
nltk
opencv4
@ -120,6 +124,7 @@ buildPythonPackage rec {
"tensorflow_datasets/core/registered_test.py"
"tensorflow_datasets/core/utils/gcs_utils_test.py"
"tensorflow_datasets/import_without_tf_test.py"
"tensorflow_datasets/proto/build_tf_proto_test.py"
"tensorflow_datasets/scripts/cli/build_test.py"
# Requires `pretty_midi` which is not packaged in `nixpkgs`.

View file

@ -5381,6 +5381,8 @@ self: super: with self; {
json-stream-rs-tokenizer = callPackage ../development/python-modules/json-stream-rs-tokenizer { };
jsonable = callPackage ../development/python-modules/jsonable { };
jsonnet = buildPythonPackage { inherit (pkgs.jsonnet) name src; };
jsonpatch = callPackage ../development/python-modules/jsonpatch { };
@ -6722,6 +6724,8 @@ self: super: with self; {
mujson = callPackage ../development/python-modules/mujson { };
mwcli = callPackage ../development/python-modules/mwcli { };
mwclient = callPackage ../development/python-modules/mwclient { };
mwdblib = callPackage ../development/python-modules/mwdblib { };
@ -6730,6 +6734,10 @@ self: super: with self; {
mwparserfromhell = callPackage ../development/python-modules/mwparserfromhell { };
mwtypes = callPackage ../development/python-modules/mwtypes { };
mwxml = callPackage ../development/python-modules/mwxml { };
mxnet = callPackage ../development/python-modules/mxnet { };
myfitnesspal = callPackage ../development/python-modules/myfitnesspal { };
@ -7539,6 +7547,8 @@ self: super: with self; {
papis-python-rofi = callPackage ../development/python-modules/papis-python-rofi { };
para = callPackage ../development/python-modules/para { };
param = callPackage ../development/python-modules/param { };
parameter-expansion-patched = callPackage ../development/python-modules/parameter-expansion-patched { };