diff options
Diffstat (limited to 'pkgs/development/python-modules')
17 files changed, 274 insertions, 97 deletions
diff --git a/pkgs/development/python-modules/gradio-pdf/default.nix b/pkgs/development/python-modules/gradio-pdf/default.nix index a029f427ca2e..caa3ddbaa6b8 100644 --- a/pkgs/development/python-modules/gradio-pdf/default.nix +++ b/pkgs/development/python-modules/gradio-pdf/default.nix @@ -10,13 +10,13 @@ buildPythonPackage rec { pname = "gradio-pdf"; - version = "0.0.5"; + version = "0.0.7"; format = "pyproject"; src = fetchPypi { pname = "gradio_pdf"; inherit version; - hash = "sha256-yHISYpkZ5YgUBxCfu2rw3R+g9t4h1WogXXCuBiV92Vk="; + hash = "sha256-3OJiBnp79woCUtiNiaePwfJCAS42WYkv9GFeScesFv8="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/mujoco/default.nix b/pkgs/development/python-modules/mujoco/default.nix index 098e2a768cc0..9237dbb6501c 100644 --- a/pkgs/development/python-modules/mujoco/default.nix +++ b/pkgs/development/python-modules/mujoco/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "mujoco"; - version = "3.1.3"; + version = "3.1.4"; pyproject = true; @@ -27,7 +27,7 @@ buildPythonPackage rec { # in the project's CI. src = fetchPypi { inherit pname version; - hash = "sha256-9wDQdAMQYLRhEd22BDLQBCX4Ie7q8MzHbtldR4Yb1N4="; + hash = "sha256-GdeL1zMri/ArjXyjXTgan48WVPTHDA1/SZxtTYB8QFk="; }; nativeBuildInputs = [ cmake setuptools ]; diff --git a/pkgs/development/python-modules/multiset/default.nix b/pkgs/development/python-modules/multiset/default.nix index c8d813047d5f..27476e44b17f 100644 --- a/pkgs/development/python-modules/multiset/default.nix +++ b/pkgs/development/python-modules/multiset/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "multiset"; - version = "3.0.2"; + version = "3.1.0"; format = "pyproject"; src = fetchPypi { inherit pname version; - hash = "sha256-oqUSMaQtkiriJFwpTCNaKfioiOBoZdL84hxuyvER//8="; + hash = "sha256-jpPlhvaI0uKwD6WEPiqC9p6XHhrHrT14+dKkdgjem6Y="; }; postPatch = '' diff --git a/pkgs/development/python-modules/niaarm/default.nix b/pkgs/development/python-modules/niaarm/default.nix index 747cf394f4ad..ff61dfd1eb8d 100644 --- a/pkgs/development/python-modules/niaarm/default.nix +++ b/pkgs/development/python-modules/niaarm/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "niaarm"; - version = "0.3.8"; + version = "0.3.9"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "firefly-cpp"; repo = "NiaARM"; rev = "refs/tags/${version}"; - hash = "sha256-p07SuCl433rj6IEMO1eg5QHAUTVfgqYo5gsprMvQg2Y="; + hash = "sha256-J3126RSJYBCSyxoPsvsDgmx9E+9fP2h6avPiCHISL7c="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/publicsuffix/default.nix b/pkgs/development/python-modules/publicsuffix/default.nix index 9de169f696dd..11f331cd6792 100644 --- a/pkgs/development/python-modules/publicsuffix/default.nix +++ b/pkgs/development/python-modules/publicsuffix/default.nix @@ -1,25 +1,37 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, +}: buildPythonPackage rec { pname = "publicsuffix"; version = "1.1.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "22ce1d65ab6af5e9b2122e2443facdb93fb5c4abf24138099cb10fe7989f43b6"; + hash = "sha256-Is4dZatq9emyEi4kQ/rNuT+1xKvyQTgJnLEP55ifQ7Y="; }; - # disable test_fetch and the doctests (which also invoke fetch) postPatch = '' sed -i -e "/def test_fetch/i\\ \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py ''; + build-system = [ setuptools ]; + + pythonImportsCheck = [ "publicsuffix" ]; + meta = with lib; { description = "Allows to get the public suffix of a domain name"; homepage = "https://pypi.python.org/pypi/publicsuffix/"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/publicsuffix2/default.nix b/pkgs/development/python-modules/publicsuffix2/default.nix index 064dc3f5f94f..02a686c31025 100644 --- a/pkgs/development/python-modules/publicsuffix2/default.nix +++ b/pkgs/development/python-modules/publicsuffix2/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, +}: let tagVersion = "2.2019-12-21"; in @@ -6,16 +11,18 @@ buildPythonPackage { pname = "publicsuffix2"; # tags have dashes, while the library version does not # see https://github.com/nexB/python-publicsuffix2/issues/12 - version = lib.replaceStrings ["-"] [""] tagVersion; - format = "setuptools"; + version = lib.replaceStrings [ "-" ] [ "" ] tagVersion; + pyproject = true; src = fetchFromGitHub { owner = "nexB"; repo = "python-publicsuffix2"; rev = "release-${tagVersion}"; - sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r"; + hash = "sha256-OV0O4LLxQ2LQiEHc1JTvScu35o2IWxo/hgn/COh2e7Y="; }; + build-system = [ setuptools ]; + postPatch = '' # only used to update the interal publicsuffix list substituteInPlace setup.py \ diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index 238f5742ccc8..adb2fc81c977 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "python-telegram-bot"; - version = "21.0.1"; + version = "21.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "python-telegram-bot"; repo = "python-telegram-bot"; rev = "refs/tags/v${version}"; - hash = "sha256-jyDEfHkbB95fzFkRFKgV4y46AxT+yUPwfq1DJ3sF//I="; + hash = "sha256-s5C3f17VP5ooH78/4JQMkzuV1byi7rFPTmVr3lZliFc="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/pytorch-metric-learning/default.nix b/pkgs/development/python-modules/pytorch-metric-learning/default.nix index 0ef7e51d2c38..a1d1f7f38a2c 100644 --- a/pkgs/development/python-modules/pytorch-metric-learning/default.nix +++ b/pkgs/development/python-modules/pytorch-metric-learning/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "pytorch-metric-learning"; - version = "2.4.1"; + version = "2.5.0"; format = "setuptools"; disabled = isPy27; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "KevinMusgrave"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-LftT/ATrvEkVJPS63LSN/7vCsHhobm6xk8hFEa+wrzE="; + hash = "sha256-1y7VCnzgwFOMeMloVdYyszNhf/zZlBJUjuF4qgA5c0A="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/riscv-config/default.nix b/pkgs/development/python-modules/riscv-config/default.nix index de316ad27646..298772e12cc7 100644 --- a/pkgs/development/python-modules/riscv-config/default.nix +++ b/pkgs/development/python-modules/riscv-config/default.nix @@ -1,28 +1,37 @@ -{ lib -, buildPythonPackage -, cerberus -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pyyaml -, ruamel-yaml +{ + lib, + buildPythonPackage, + cerberus, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pyyaml, + ruamel-yaml, + setuptools, + pythonRelaxDepsHook, }: buildPythonPackage rec { pname = "riscv-config"; - version = "3.18.0"; - format = "setuptools"; + version = "3.18.1"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "riscv-software-src"; - repo = pname; + repo = "riscv-config"; rev = "refs/tags/${version}"; - hash = "sha256-3QjPJRFb7X23jZICRx4ZJlnuhe+RN6GcKeypoKtK2bk="; + hash = "sha256-lBjSHfnuNPi4Ks5ZCRLqJx3/l4GMmMEEIud8ZVl/S4Q="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = [ "pyyaml" ]; + + build-system = [ setuptools ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ cerberus pyyaml ruamel-yaml @@ -31,16 +40,14 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "riscv_config" - ]; + pythonImportsCheck = [ "riscv_config" ]; meta = with lib; { description = "RISC-V configuration validator"; - mainProgram = "riscv-config"; homepage = "https://github.com/riscv/riscv-config"; changelog = "https://github.com/riscv-software-src/riscv-config/blob/${version}/CHANGELOG.md"; - maintainers = with maintainers; [ genericnerdyusername ]; license = licenses.bsd3; + maintainers = with maintainers; [ genericnerdyusername ]; + mainProgram = "riscv-config"; }; } diff --git a/pkgs/development/python-modules/schema-salad/default.nix b/pkgs/development/python-modules/schema-salad/default.nix index 7e20d1c39779..8d267299add0 100644 --- a/pkgs/development/python-modules/schema-salad/default.nix +++ b/pkgs/development/python-modules/schema-salad/default.nix @@ -1,52 +1,63 @@ -{ lib -, black -, buildPythonPackage -, cachecontrol -, fetchFromGitHub -, importlib-resources -, mistune -, mypy-extensions -, pytestCheckHook -, pythonOlder -, rdflib -, requests -, ruamel-yaml -, setuptools-scm +{ + lib, + black, + buildPythonPackage, + cachecontrol, + fetchFromGitHub, + importlib-resources, + mistune, + mypy, + mypy-extensions, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, + rdflib, + requests, + ruamel-yaml, + setuptools-scm, + types-dataclasses, + types-requests, + types-setuptools, }: buildPythonPackage rec { pname = "schema-salad"; - version = "8.5.20240311110950"; - format = "setuptools"; + version = "8.5.20240410123758"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "common-workflow-language"; repo = "schema_salad"; rev = "refs/tags/${version}"; - hash = "sha256-bjeVgV9ovIVvGvSay24vKkzSXBbzgV05BkO5DojTX3o="; + hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "black>=19.10b0,<23.12" "black>=19.10b0" + ''; - propagatedBuildInputs = [ - cachecontrol - mistune - mypy-extensions - rdflib - requests - ruamel-yaml - ] ++ cachecontrol.optional-dependencies.filecache - ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + build-system = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.pycodegen; + dependencies = + [ + cachecontrol + mistune + mypy + mypy-extensions + rdflib + requests + ruamel-yaml + types-dataclasses + types-requests + types-setuptools + ] + ++ cachecontrol.optional-dependencies.filecache + ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; + + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pycodegen; preCheck = '' rm tox.ini @@ -62,14 +73,10 @@ buildPythonPackage rec { "test_bad_schemas" ]; - pythonImportsCheck = [ - "schema_salad" - ]; + pythonImportsCheck = [ "schema_salad" ]; passthru.optional-dependencies = { - pycodegen = [ - black - ]; + pycodegen = [ black ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/snakemake-interface-common/default.nix b/pkgs/development/python-modules/snakemake-interface-common/default.nix index 15f5d663579f..2bc7a0672dba 100644 --- a/pkgs/development/python-modules/snakemake-interface-common/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-common/default.nix @@ -1,37 +1,45 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, argparse-dataclass -, configargparse +{ + lib, + argparse-dataclass, + buildPythonPackage, + configargparse, + fetchFromGitHub, + poetry-core, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { pname = "snakemake-interface-common"; version = "1.17.2"; - format = "pyproject"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "snakemake"; - repo = pname; + repo = "snakemake-interface-common"; rev = "refs/tags/v${version}"; hash = "sha256-N8mSS+gABAgXm01BcsMk89a3HsIsc3RHxCAi3GlxtRg="; }; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ argparse-dataclass configargparse ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "snakemake_interface_common" ]; + pytestFlagsArray = [ "tests/tests.py" ]; + meta = with lib; { description = "Common functions and classes for Snakemake and its plugins"; homepage = "https://github.com/snakemake/snakemake-interface-common"; + changelog = "https://github.com/snakemake/snakemake-interface-common/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ veprbl ]; }; diff --git a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix index b493c4bcee96..e40a0842b908 100644 --- a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "snakemake-interface-executor-plugins"; - version = "9.1.0"; + version = "9.1.1"; format = "pyproject"; src = fetchFromGitHub { owner = "snakemake"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-DW8fxBBP6U7N0Hgk/enOzUz68L7pCjVl/8MFCy6PKxg="; + hash = "sha256-jANSGNdWmc6ERClLR/pExoboyz8gUL2FW3W7kDQDOQo="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix new file mode 100644 index 000000000000..9f194eb25357 --- /dev/null +++ b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, boto3 +, botocore +, poetry-core +, snakemake +, snakemake-interface-storage-plugins +, snakemake-interface-common +, urllib3 +}: + +buildPythonPackage rec { + pname = "snakemake-storage-plugin-s3"; + version = "0.2.10"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "snakemake"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-k21DRQdSUFkdwNb7MZJmClhIg+pdSc7H6FkDrbf4DT8="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace ">=2.0,<2.2" "*" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + boto3 + botocore + snakemake-interface-storage-plugins + snakemake-interface-common + urllib3 + ]; + + nativeCheckInputs = [ + snakemake + ]; + + pythonImportsCheck = [ "snakemake_storage_plugin_s3" ]; + + meta = with lib; { + description = "A Snakemake storage plugin for S3 API storage (AWS S3, MinIO, etc.)"; + homepage = "https://github.com/snakemake/snakemake-storage-plugin-s3"; + license = licenses.mit; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix new file mode 100644 index 000000000000..82d8c2928c3c --- /dev/null +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, snakemake +, snakemake-interface-storage-plugins +, snakemake-interface-common +, xrootd +}: + +buildPythonPackage rec { + pname = "snakemake-storage-plugin-xrootd"; + version = "unstable-2023-12-16"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "snakemake"; + repo = pname; + rev = "408f1e956b5427c34b49eeca340492a438e8eccb"; + hash = "sha256-CcSG//D9kz0Q4LtaSngJpCtY0dbNFFuKMVmBxR1fcMo="; + }; + + # xrootd<6.0.0,>=5.6.4 not satisfied by version 5.7rc20240303 + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'xrootd = "^5.6.4"' "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + snakemake-interface-storage-plugins + snakemake-interface-common + xrootd + ]; + + nativeCheckInputs = [ + snakemake + ]; + + pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ]; + + meta = with lib; { + description = "A Snakemake storage plugin for handling input and output via XRootD"; + homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd"; + license = licenses.mit; + maintainers = with maintainers; [ veprbl ]; + }; +} diff --git a/pkgs/development/python-modules/trytond/default.nix b/pkgs/development/python-modules/trytond/default.nix index d9cc9ae10312..5e89da7f3504 100644 --- a/pkgs/development/python-modules/trytond/default.nix +++ b/pkgs/development/python-modules/trytond/default.nix @@ -25,14 +25,14 @@ buildPythonPackage rec { pname = "trytond"; - version = "7.0.8"; + version = "7.0.9"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-ZpK3+DZi2U4TK7dHwIJnw5u/lFrvtBD+MhRLkdO8DLI="; + hash = "sha256-DlPuIaGTpJu4FyLOTNAy2CAEJHoe7+8e34wacz8C7d8="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/types-dataclasses/default.nix b/pkgs/development/python-modules/types-dataclasses/default.nix new file mode 100644 index 000000000000..5823b56f6637 --- /dev/null +++ b/pkgs/development/python-modules/types-dataclasses/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, +}: + +buildPythonPackage rec { + pname = "types-dataclasses"; + version = "0.6.6"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-S1ovz45WjVoZdM1pAQ4yDhr4JRF37JaN57m7SapJ97k="; + }; + + build-system = [ setuptools ]; + + # Modules doesn't have tests + doCheck = false; + + pythonImportsCheck = [ "dataclasses-stubs" ]; + + meta = with lib; { + description = "Typing stubs for dataclasses"; + homepage = "https://github.com/python/typeshed"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/zodb/default.nix b/pkgs/development/python-modules/zodb/default.nix index c90cc42a3383..2ac592db4223 100644 --- a/pkgs/development/python-modules/zodb/default.nix +++ b/pkgs/development/python-modules/zodb/default.nix @@ -16,12 +16,12 @@ buildPythonPackage rec { pname = "zodb"; - version = "5.8.1"; + version = "6.0"; src = fetchPypi { pname = "ZODB"; inherit version; - hash = "sha256-xsc6vTZg1gb/wfIfl97xS1K0b0pwLsnm7kSabiviZN8="; + hash = "sha256-5Rx5IRXF2q1OgGdXuvovdUwADCPmurw75eQHdf5Jtdw="; }; # remove broken test |