Merge pull request #299223 from NixOS/python-updates

[python-updates] 2024-03-24 - selective updates

authored by Martin Weinelt and committed by GitHub ea148009 64f4bdb7

+863 -762
+7 -1
pkgs/applications/audio/miniplayer/default.nix
··· 15 hash = "sha256-iUUsVIDLQAiaMomfA2LvvJZ2ePhgADtC6GCwIpRC1MA="; 16 }; 17 18 - propagatedBuildInputs = [ 19 colorthief 20 ffmpeg-python 21 mpd2 ··· 24 requests 25 ueberzug 26 ]; 27 28 # pythonImportsCheck is disabled because this package doesn't expose any modules. 29
··· 15 hash = "sha256-iUUsVIDLQAiaMomfA2LvvJZ2ePhgADtC6GCwIpRC1MA="; 16 }; 17 18 + build-system = [ 19 + setuptools 20 + ]; 21 + 22 + dependencies = [ 23 colorthief 24 ffmpeg-python 25 mpd2 ··· 28 requests 29 ueberzug 30 ]; 31 + 32 + doCheck = false; # no tests 33 34 # pythonImportsCheck is disabled because this package doesn't expose any modules. 35
+4 -1
pkgs/applications/misc/electron-cash/default.nix
··· 12 sha256 = "sha256-xOyj5XerOwgfvI0qj7+7oshDvd18h5IeZvcJTis8nWo="; 13 }; 14 15 propagatedBuildInputs = with python3Packages; [ 16 # requirements 17 pyaes ··· 36 cryptography 37 38 # requirements-hw 39 - cython 40 trezor 41 keepkey 42 btchip-python
··· 12 sha256 = "sha256-xOyj5XerOwgfvI0qj7+7oshDvd18h5IeZvcJTis8nWo="; 13 }; 14 15 + build-system = with python3Packages; [ 16 + cython 17 + ]; 18 + 19 propagatedBuildInputs = with python3Packages; [ 20 # requirements 21 pyaes ··· 40 cryptography 41 42 # requirements-hw 43 trezor 44 keepkey 45 btchip-python
+1 -1
pkgs/applications/science/biology/macs2/default.nix
··· 21 ]; 22 23 nativeBuildInputs = with python3.pkgs; [ 24 - cython 25 numpy 26 setuptools 27 wheel
··· 21 ]; 22 23 nativeBuildInputs = with python3.pkgs; [ 24 + cython_0 25 numpy 26 setuptools 27 wheel
+2 -2
pkgs/applications/science/math/sage/python-modules/sage-setup.nix
··· 1 { lib 2 , buildPythonPackage 3 , sage-src 4 - , cython_3 5 , jinja2 6 , pkgconfig # the python module, not the pkg-config alias 7 }: ··· 11 pname = "sage-setup"; 12 src = sage-src; 13 14 - nativeBuildInputs = [ cython_3 ]; 15 buildInputs = [ pkgconfig ]; 16 propagatedBuildInputs = [ jinja2 ]; 17
··· 1 { lib 2 , buildPythonPackage 3 , sage-src 4 + , cython 5 , jinja2 6 , pkgconfig # the python module, not the pkg-config alias 7 }: ··· 11 pname = "sage-setup"; 12 src = sage-src; 13 14 + nativeBuildInputs = [ cython ]; 15 buildInputs = [ pkgconfig ]; 16 propagatedBuildInputs = [ jinja2 ]; 17
+2 -2
pkgs/applications/science/math/sage/sagelib.nix
··· 48 , cvxopt 49 , cypari2 50 , cysignals 51 - , cython_3 52 , fpylll 53 , gmpy2 54 , importlib-metadata ··· 153 cvxopt 154 cypari2 155 cysignals 156 - cython_3 157 fpylll 158 gmpy2 159 importlib-metadata
··· 48 , cvxopt 49 , cypari2 50 , cysignals 51 + , cython 52 , fpylll 53 , gmpy2 54 , importlib-metadata ··· 153 cvxopt 154 cypari2 155 cysignals 156 + cython 157 fpylll 158 gmpy2 159 importlib-metadata
+1 -1
pkgs/applications/version-management/commitizen/default.nix
··· 55 pytest-freezer 56 pytest-mock 57 pytest-regressions 58 - (pytestCheckHook.override { pytest = pytest_7; }) 59 ]; 60 61 doCheck = true;
··· 55 pytest-freezer 56 pytest-mock 57 pytest-regressions 58 + pytest7CheckHook 59 ]; 60 61 doCheck = true;
+1 -1
pkgs/applications/version-management/git-up/default.nix
··· 30 31 nativeCheckInputs = [ 32 git 33 - pythonPackages.pytestCheckHook 34 ]; 35 36 # 1. git fails to run as it cannot detect the email address, so we set it
··· 30 31 nativeCheckInputs = [ 32 git 33 + pythonPackages.pytest7CheckHook 34 ]; 35 36 # 1. git fails to run as it cannot detect the email address, so we set it
+1 -1
pkgs/applications/virtualization/virt-manager/default.nix
··· 76 ''; 77 78 nativeCheckInputs = with python3.pkgs; [ 79 - pytestCheckHook 80 cpio 81 cdrtools 82 xorriso
··· 76 ''; 77 78 nativeCheckInputs = with python3.pkgs; [ 79 + pytest7CheckHook 80 cpio 81 cdrtools 82 xorriso
+1
pkgs/by-name/pr/pretalx/package.nix
··· 86 87 pythonRelaxDeps = [ 88 "django-csp" 89 "python-dateutil" 90 ]; 91
··· 86 87 pythonRelaxDeps = [ 88 "django-csp" 89 + "django-filter" 90 "python-dateutil" 91 ]; 92
+1 -1
pkgs/by-name/pr/pretix/package.nix
··· 94 --replace-fail psycopg2-binary psycopg2 \ 95 --replace-fail vat_moss_forked==2020.3.20.0.11.0 vat-moss \ 96 --replace-fail "bleach==5.0.*" bleach \ 97 --replace-fail "dnspython==2.5.*" dnspython \ 98 --replace-fail "importlib_metadata==7.*" importlib_metadata \ 99 --replace-fail "protobuf==4.25.*" protobuf \ ··· 107 build-system = with python.pkgs; [ 108 gettext 109 nodejs 110 - pythonRelaxDepsHook 111 setuptools 112 tomli 113 ];
··· 94 --replace-fail psycopg2-binary psycopg2 \ 95 --replace-fail vat_moss_forked==2020.3.20.0.11.0 vat-moss \ 96 --replace-fail "bleach==5.0.*" bleach \ 97 + --replace-fail "django-filter==23.5" django-filter \ 98 --replace-fail "dnspython==2.5.*" dnspython \ 99 --replace-fail "importlib_metadata==7.*" importlib_metadata \ 100 --replace-fail "protobuf==4.25.*" protobuf \ ··· 108 build-system = with python.pkgs; [ 109 gettext 110 nodejs 111 setuptools 112 tomli 113 ];
+1
pkgs/desktops/gnome/misc/gnome-extensions-cli/default.nix
··· 33 34 pythonRelaxDeps = [ 35 "more-itertools" 36 ]; 37 38 propagatedBuildInputs = [
··· 33 34 pythonRelaxDeps = [ 35 "more-itertools" 36 + "packaging" 37 ]; 38 39 propagatedBuildInputs = [
+1
pkgs/development/compilers/vyper/default.nix
··· 57 58 pythonRelaxDeps = [ 59 "asttokens" 60 ]; 61 62 propagatedBuildInputs = [
··· 57 58 pythonRelaxDeps = [ 59 "asttokens" 60 + "packaging" 61 ]; 62 63 propagatedBuildInputs = [
+2 -3
pkgs/development/python-modules/accelerate/default.nix
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pythonOlder 6 - , pytestCheckHook 7 - , pytest_7 8 , setuptools 9 , numpy 10 , packaging ··· 47 nativeCheckInputs = [ 48 evaluate 49 parameterized 50 - (pytestCheckHook.override { pytest = pytest_7; }) 51 transformers 52 ]; 53 preCheck = ''
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pythonOlder 6 + , pytest7CheckHook 7 , setuptools 8 , numpy 9 , packaging ··· 46 nativeCheckInputs = [ 47 evaluate 48 parameterized 49 + pytest7CheckHook 50 transformers 51 ]; 52 preCheck = ''
+2 -2
pkgs/development/python-modules/aioesphomeapi/default.nix
··· 4 , pythonOlder 5 6 # build-system 7 - , cython_3 8 , setuptools 9 10 # dependencies ··· 39 40 build-system = [ 41 setuptools 42 - cython_3 43 ]; 44 45 dependencies = [
··· 4 , pythonOlder 5 6 # build-system 7 + , cython 8 , setuptools 9 10 # dependencies ··· 39 40 build-system = [ 41 setuptools 42 + cython 43 ]; 44 45 dependencies = [
+2 -3
pkgs/development/python-modules/aiohttp/default.nix
··· 21 , freezegun 22 , gunicorn 23 , pytest-mock 24 - , pytestCheckHook 25 - , pytest_7 26 , python-on-whales 27 , re-assert 28 , trustme ··· 83 freezegun 84 gunicorn 85 pytest-mock 86 - (pytestCheckHook.override { pytest = pytest_7; }) 87 python-on-whales 88 re-assert 89 ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [
··· 21 , freezegun 22 , gunicorn 23 , pytest-mock 24 + , pytest7CheckHook 25 , python-on-whales 26 , re-assert 27 , trustme ··· 82 freezegun 83 gunicorn 84 pytest-mock 85 + pytest7CheckHook 86 python-on-whales 87 re-assert 88 ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [
+2 -2
pkgs/development/python-modules/alembic/default.nix
··· 14 , typing-extensions 15 16 # tests 17 - , pytestCheckHook 18 , pytest-xdist 19 , python-dateutil 20 }: ··· 49 ]; 50 51 nativeCheckInputs = [ 52 - pytestCheckHook 53 pytest-xdist 54 python-dateutil 55 ];
··· 14 , typing-extensions 15 16 # tests 17 + , pytest7CheckHook 18 , pytest-xdist 19 , python-dateutil 20 }: ··· 49 ]; 50 51 nativeCheckInputs = [ 52 + pytest7CheckHook 53 pytest-xdist 54 python-dateutil 55 ];
+4 -9
pkgs/development/python-modules/anytree/default.nix
··· 4 , fontconfig 5 , graphviz 6 , poetry-core 7 - , pytestCheckHook 8 , pythonOlder 9 , six 10 , substituteAll ··· 13 14 buildPythonPackage rec { 15 pname = "anytree"; 16 - version = "2.12.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; ··· 22 owner = "c0fec0de"; 23 repo = "anytree"; 24 rev = "refs/tags/${version}"; 25 - hash = "sha256-8mV9Lf6NLPUDVurXCxG+tqe7+3TrIn2H+7tHa6BpTzk="; 26 }; 27 28 patches = lib.optionals withGraphviz [ ··· 41 ]; 42 43 nativeCheckInputs = [ 44 - pytestCheckHook 45 - ]; 46 - 47 - pytestFlagsArray = [ 48 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 49 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 50 ]; 51 52 # Tests print “Fontconfig error: Cannot load default config file”
··· 4 , fontconfig 5 , graphviz 6 , poetry-core 7 + , pytest7CheckHook 8 , pythonOlder 9 , six 10 , substituteAll ··· 13 14 buildPythonPackage rec { 15 pname = "anytree"; 16 + version = "2.12.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; ··· 22 owner = "c0fec0de"; 23 repo = "anytree"; 24 rev = "refs/tags/${version}"; 25 + hash = "sha256-5HU8kR3B2RHiGBraQ2FTgVtGHJi+Lha9U/7rpNsYCCI="; 26 }; 27 28 patches = lib.optionals withGraphviz [ ··· 41 ]; 42 43 nativeCheckInputs = [ 44 + pytest7CheckHook 45 ]; 46 47 # Tests print “Fontconfig error: Cannot load default config file”
+9 -3
pkgs/development/python-modules/apsw/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , sqlite 5 , isPyPy 6 , python ··· 8 9 buildPythonPackage rec { 10 pname = "apsw"; 11 - version = "3.45.1.0"; 12 - format = "setuptools"; 13 14 disabled = isPyPy; 15 ··· 17 owner = "rogerbinns"; 18 repo = "apsw"; 19 rev = "refs/tags/${version}"; 20 - hash = "sha256-NkpkciLR2TgfK/7UQHEzvQu8qRj4UJyOlGQbiV23qrc="; 21 }; 22 23 buildInputs = [ 24 sqlite ··· 36 ]; 37 38 meta = with lib; { 39 description = "A Python wrapper for the SQLite embedded relational database engine"; 40 homepage = "https://github.com/rogerbinns/apsw"; 41 license = licenses.zlib;
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , setuptools 5 , sqlite 6 , isPyPy 7 , python ··· 9 10 buildPythonPackage rec { 11 pname = "apsw"; 12 + version = "3.45.2.0"; 13 + pyproject = true; 14 15 disabled = isPyPy; 16 ··· 18 owner = "rogerbinns"; 19 repo = "apsw"; 20 rev = "refs/tags/${version}"; 21 + hash = "sha256-tTi3/10W4OoGH6PQVhvPWc5o09on5BZrWoAvrfh4C/E="; 22 }; 23 + 24 + build-system = [ 25 + setuptools 26 + ]; 27 28 buildInputs = [ 29 sqlite ··· 41 ]; 42 43 meta = with lib; { 44 + changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst"; 45 description = "A Python wrapper for the SQLite embedded relational database engine"; 46 homepage = "https://github.com/rogerbinns/apsw"; 47 license = licenses.zlib;
+2 -2
pkgs/development/python-modules/astropy/default.nix
··· 5 6 # build time 7 , astropy-extension-helpers 8 - , cython_3 9 , jinja2 10 , oldest-supported-numpy 11 , setuptools-scm ··· 37 38 nativeBuildInputs = [ 39 astropy-extension-helpers 40 - cython_3 41 jinja2 42 oldest-supported-numpy 43 setuptools-scm
··· 5 6 # build time 7 , astropy-extension-helpers 8 + , cython 9 , jinja2 10 , oldest-supported-numpy 11 , setuptools-scm ··· 37 38 nativeBuildInputs = [ 39 astropy-extension-helpers 40 + cython 41 jinja2 42 oldest-supported-numpy 43 setuptools-scm
+5 -4
pkgs/development/python-modules/aws-encryption-sdk/default.nix
··· 41 pytestCheckHook 42 ]; 43 44 - pytestFlagsArray = [ 45 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 46 - ]; 47 - 48 disabledTestPaths = [ 49 # Tests require networking 50 "examples" 51 "test/integration" 52 ]; 53 54 pythonImportsCheck = [
··· 41 pytestCheckHook 42 ]; 43 44 disabledTestPaths = [ 45 # Tests require networking 46 "examples" 47 "test/integration" 48 + ]; 49 + 50 + disabledTests = [ 51 + # pytest 8 compat issue 52 + "test_happy_version" 53 ]; 54 55 pythonImportsCheck = [
+6
pkgs/development/python-modules/awswrangler/default.nix
··· 19 , pyparsing 20 , pytestCheckHook 21 , pythonOlder 22 , redshift-connector 23 , requests-aws4auth 24 }: ··· 39 40 nativeBuildInputs = [ 41 poetry-core 42 ]; 43 44 propagatedBuildInputs = [
··· 19 , pyparsing 20 , pytestCheckHook 21 , pythonOlder 22 + , pythonRelaxDepsHook 23 , redshift-connector 24 , requests-aws4auth 25 }: ··· 40 41 nativeBuildInputs = [ 42 poetry-core 43 + pythonRelaxDepsHook 44 + ]; 45 + 46 + pythonRelaxDeps = [ 47 + "packaging" 48 ]; 49 50 propagatedBuildInputs = [
+2 -6
pkgs/development/python-modules/barectf/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , poetry-core 5 - , pytestCheckHook 6 , pythonRelaxDepsHook 7 , setuptools 8 , jsonschema ··· 47 ]; 48 49 nativeCheckInputs = [ 50 - pytestCheckHook 51 - ]; 52 - 53 - pytestFlagsArray = [ 54 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 55 ]; 56 57 meta = with lib; {
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , poetry-core 5 + , pytest7CheckHook 6 , pythonRelaxDepsHook 7 , setuptools 8 , jsonschema ··· 47 ]; 48 49 nativeCheckInputs = [ 50 + pytest7CheckHook 51 ]; 52 53 meta = with lib; {
+2 -2
pkgs/development/python-modules/betterproto/default.nix
··· 10 , isort 11 , python 12 , pydantic 13 - , pytestCheckHook 14 , pytest-asyncio 15 , pytest-mock 16 , typing-extensions ··· 53 pydantic 54 pytest-asyncio 55 pytest-mock 56 - pytestCheckHook 57 tomlkit 58 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 59
··· 10 , isort 11 , python 12 , pydantic 13 + , pytest7CheckHook 14 , pytest-asyncio 15 , pytest-mock 16 , typing-extensions ··· 53 pydantic 54 pytest-asyncio 55 pytest-mock 56 + pytest7CheckHook 57 tomlkit 58 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 59
+2 -2
pkgs/development/python-modules/blis/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , setuptools 5 - , cython 6 , hypothesis 7 , numpy 8 , pytestCheckHook ··· 38 39 nativeBuildInputs = [ 40 setuptools 41 - cython 42 ]; 43 44 propagatedBuildInputs = [
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , setuptools 5 + , cython_0 6 , hypothesis 7 , numpy 8 , pytestCheckHook ··· 38 39 nativeBuildInputs = [ 40 setuptools 41 + cython_0 42 ]; 43 44 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/blosc2/default.nix
··· 4 5 # build-system 6 , cmake 7 - , cython_3 8 , ninja 9 , oldest-supported-numpy 10 , pkg-config ··· 47 48 nativeBuildInputs = [ 49 cmake 50 - cython_3 51 ninja 52 oldest-supported-numpy 53 pkg-config
··· 4 5 # build-system 6 , cmake 7 + , cython 8 , ninja 9 , oldest-supported-numpy 10 , pkg-config ··· 47 48 nativeBuildInputs = [ 49 cmake 50 + cython 51 ninja 52 oldest-supported-numpy 53 pkg-config
+2 -2
pkgs/development/python-modules/bluetooth-data-tools/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , cryptography 5 - , cython_3 6 , poetry-core 7 , pytestCheckHook 8 , pythonOlder ··· 28 env.REQUIRE_CYTHON = 1; 29 30 nativeBuildInputs = [ 31 - cython_3 32 poetry-core 33 setuptools 34 ];
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , cryptography 5 + , cython 6 , poetry-core 7 , pytestCheckHook 8 , pythonOlder ··· 28 env.REQUIRE_CYTHON = 1; 29 30 nativeBuildInputs = [ 31 + cython 32 poetry-core 33 setuptools 34 ];
+2 -2
pkgs/development/python-modules/cached-ipaddress/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , fetchFromGitHub 5 , poetry-core 6 , pytestCheckHook ··· 30 ''; 31 32 nativeBuildInputs = [ 33 - cython_3 34 poetry-core 35 setuptools 36 wheel
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , fetchFromGitHub 5 , poetry-core 6 , pytestCheckHook ··· 30 ''; 31 32 nativeBuildInputs = [ 33 + cython 34 poetry-core 35 setuptools 36 wheel
+2 -2
pkgs/development/python-modules/cassandra-driver/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , cryptography 5 - , cython 6 , eventlet 7 , fetchFromGitHub 8 , geomet ··· 43 ''; 44 45 nativeBuildInputs = [ 46 - cython 47 ]; 48 49 buildInputs = [
··· 2 , stdenv 3 , buildPythonPackage 4 , cryptography 5 + , cython_0 6 , eventlet 7 , fetchFromGitHub 8 , geomet ··· 43 ''; 44 45 nativeBuildInputs = [ 46 + cython_0 47 ]; 48 49 buildInputs = [
+2 -2
pkgs/development/python-modules/certifi/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "certifi"; 12 - version = "2023.11.17"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.6"; ··· 18 owner = pname; 19 repo = "python-certifi"; 20 rev = version; 21 - hash = "sha256-H3zsFJjWt2+tT7yqQOOZZwSL5y0AtfDz6Fqxwpm4Wl8="; 22 }; 23 24 patches = [
··· 9 10 buildPythonPackage rec { 11 pname = "certifi"; 12 + version = "2024.02.02"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.6"; ··· 18 owner = pname; 19 repo = "python-certifi"; 20 rev = version; 21 + hash = "sha256-gnWJjZy5E/0lvAeLftXNtcHH6RHL/dUomXOBgumiWX8="; 22 }; 23 24 patches = [
+13 -12
pkgs/development/python-modules/certifi/env.patch
··· 1 diff --git a/certifi/core.py b/certifi/core.py 2 - index de02898..c033d20 100644 3 --- a/certifi/core.py 4 +++ b/certifi/core.py 5 - @@ -4,15 +4,25 @@ certifi.py 6 7 This module returns the installation location of cacert.pem or its contents. 8 """ 9 +import os 10 import sys 11 12 13 +def get_cacert_path_from_environ(): ··· 29 30 def where() -> str: 31 # This is slightly terrible, but we want to delay extracting the file 32 - @@ -39,14 +49,16 @@ if sys.version_info >= (3, 11): 33 return _CACERT_PATH 34 35 def contents() -> str: 36 - - return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii") 37 + if _CACERT_PATH is not None: 38 + return open(_CACERT_PATH, encoding="utf-8").read() 39 - + return files("certifi").joinpath("cacert.pem").read_text(encoding="utf-8") 40 41 elif sys.version_info >= (3, 7): 42 - 43 from importlib.resources import path as get_path, read_text 44 45 _CACERT_CTX = None ··· 48 49 def where() -> str: 50 # This is slightly terrible, but we want to delay extracting the 51 - @@ -74,7 +86,9 @@ elif sys.version_info >= (3, 7): 52 return _CACERT_PATH 53 54 def contents() -> str: ··· 59 60 else: 61 import os 62 - @@ -84,6 +98,8 @@ else: 63 Package = Union[types.ModuleType, str] 64 Resource = Union[str, "os.PathLike"] 65 ··· 68 # This fallback will work for Python versions prior to 3.7 that lack the 69 # importlib.resources module but relies on the existing `where` function 70 # so won't address issues with environments like PyOxidizer that don't set 71 - @@ -102,7 +118,14 @@ else: 72 def where() -> str: 73 f = os.path.dirname(__file__) 74 ··· 78 return os.path.join(f, "cacert.pem") 79 80 def contents() -> str: 81 - - return read_text("certifi", "cacert.pem", encoding="ascii") 82 + if _CACERT_PATH is not None: 83 + with open(_CACERT_PATH, encoding="utf-8") as data: 84 + return data.read() 85 - + 86 - + return read_text("certifi", "cacert.pem", encoding="utf-8")
··· 1 diff --git a/certifi/core.py b/certifi/core.py 2 + index 91f538b..1110ce0 100644 3 --- a/certifi/core.py 4 +++ b/certifi/core.py 5 + @@ -4,6 +4,7 @@ certifi.py 6 7 This module returns the installation location of cacert.pem or its contents. 8 """ 9 +import os 10 import sys 11 + import atexit 12 + 13 + @@ -11,12 +12,21 @@ def exit_cacert_ctx() -> None: 14 + _CACERT_CTX.__exit__(None, None, None) # type: ignore[union-attr] 15 16 17 +def get_cacert_path_from_environ(): ··· 33 34 def where() -> str: 35 # This is slightly terrible, but we want to delay extracting the file 36 + @@ -44,6 +54,8 @@ if sys.version_info >= (3, 11): 37 return _CACERT_PATH 38 39 def contents() -> str: 40 + if _CACERT_PATH is not None: 41 + return open(_CACERT_PATH, encoding="utf-8").read() 42 + return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii") 43 44 elif sys.version_info >= (3, 7): 45 + @@ -51,7 +63,7 @@ elif sys.version_info >= (3, 7): 46 from importlib.resources import path as get_path, read_text 47 48 _CACERT_CTX = None ··· 51 52 def where() -> str: 53 # This is slightly terrible, but we want to delay extracting the 54 + @@ -80,7 +92,9 @@ elif sys.version_info >= (3, 7): 55 return _CACERT_PATH 56 57 def contents() -> str: ··· 62 63 else: 64 import os 65 + @@ -90,6 +104,8 @@ else: 66 Package = Union[types.ModuleType, str] 67 Resource = Union[str, "os.PathLike"] 68 ··· 71 # This fallback will work for Python versions prior to 3.7 that lack the 72 # importlib.resources module but relies on the existing `where` function 73 # so won't address issues with environments like PyOxidizer that don't set 74 + @@ -108,7 +124,13 @@ else: 75 def where() -> str: 76 f = os.path.dirname(__file__) 77 ··· 81 return os.path.join(f, "cacert.pem") 82 83 def contents() -> str: 84 + if _CACERT_PATH is not None: 85 + with open(_CACERT_PATH, encoding="utf-8") as data: 86 + return data.read() 87 + return read_text("certifi", "cacert.pem", encoding="ascii")
+2 -2
pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix
··· 4 , pythonOlder 5 6 # build-system 7 - , cython_3 8 , poetry-core 9 , setuptools 10 ··· 34 }; 35 36 nativeBuildInputs = [ 37 - cython_3 38 poetry-core 39 setuptools 40 ];
··· 4 , pythonOlder 5 6 # build-system 7 + , cython 8 , poetry-core 9 , setuptools 10 ··· 34 }; 35 36 nativeBuildInputs = [ 37 + cython 38 poetry-core 39 setuptools 40 ];
+2 -6
pkgs/development/python-modules/chalice/default.nix
··· 10 , mock 11 , mypy-extensions 12 , pip 13 - , pytestCheckHook 14 , pythonOlder 15 , pyyaml 16 , requests ··· 61 nativeCheckInputs = [ 62 hypothesis 63 mock 64 - pytestCheckHook 65 requests 66 websocket-client 67 - ]; 68 - 69 - pytestFlagsArray = [ 70 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 71 ]; 72 73 disabledTestPaths = [
··· 10 , mock 11 , mypy-extensions 12 , pip 13 + , pytest7CheckHook 14 , pythonOlder 15 , pyyaml 16 , requests ··· 61 nativeCheckInputs = [ 62 hypothesis 63 mock 64 + pytest7CheckHook 65 requests 66 websocket-client 67 ]; 68 69 disabledTestPaths = [
+1 -1
pkgs/development/python-modules/chart-studio/default.nix
··· 21 owner = "plotly"; 22 repo = "plotly.py"; 23 rev = "refs/tags/v${version}"; 24 - hash = "sha256-LSZGaefxQC6h9VAJ2wgZyaQPR6vs0wrp2oxd51I3pL8="; 25 }; 26 27 sourceRoot = "${src.name}/packages/python/chart-studio";
··· 21 owner = "plotly"; 22 repo = "plotly.py"; 23 rev = "refs/tags/v${version}"; 24 + hash = "sha256-i//LKTNmoIrusBnpfSGc9cDijPxg/dY/7fumV3kfTAY="; 25 }; 26 27 sourceRoot = "${src.name}/packages/python/chart-studio";
+9 -4
pkgs/development/python-modules/chex/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 , absl-py 6 , cloudpickle 7 , dm-tree ··· 15 16 buildPythonPackage rec { 17 pname = "chex"; 18 - version = "0.1.85"; 19 - format = "setuptools"; 20 21 disabled = pythonOlder "3.9"; 22 ··· 24 owner = "deepmind"; 25 repo = "chex"; 26 rev = "refs/tags/v${version}"; 27 - hash = "sha256-7k/+2dNNbPBXtbabuOEVpAI7T1SuM4JDf074dmTg/vs="; 28 }; 29 30 - propagatedBuildInputs = [ 31 absl-py 32 jaxlib 33 jax
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 + , setuptools 6 , absl-py 7 , cloudpickle 8 , dm-tree ··· 16 17 buildPythonPackage rec { 18 pname = "chex"; 19 + version = "0.1.86"; 20 + pyproject = true; 21 22 disabled = pythonOlder "3.9"; 23 ··· 25 owner = "deepmind"; 26 repo = "chex"; 27 rev = "refs/tags/v${version}"; 28 + hash = "sha256-Z5Ns4fG5pC99I4xdGjDMKX6YZpTtd1y0TWcIOtr7dug="; 29 }; 30 31 + build-system = [ 32 + setuptools 33 + ]; 34 + 35 + dependencies = [ 36 absl-py 37 jaxlib 38 jax
+2 -2
pkgs/development/python-modules/clickhouse-cityhash/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , fetchPypi 5 , pythonOlder 6 , setuptools ··· 19 }; 20 21 nativeBuildInputs = [ 22 - cython_3 23 setuptools 24 ]; 25
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , fetchPypi 5 , pythonOlder 6 , setuptools ··· 19 }; 20 21 nativeBuildInputs = [ 22 + cython 23 setuptools 24 ]; 25
+2 -2
pkgs/development/python-modules/clickhouse-connect/default.nix
··· 4 , pythonOlder 5 , pytestCheckHook 6 # build_requires 7 - , cython_3 8 # install_requires 9 , certifi 10 , importlib-metadata ··· 36 hash = "sha256-YEtcM9+GO8mYv2pyaBYmXdmWLXVuteKtQIJR4H+Xsd4="; 37 }; 38 39 - nativeBuildInputs = [ cython_3 ]; 40 setupPyBuildFlags = [ "--inplace" ]; 41 enableParallelBuilding = true; 42
··· 4 , pythonOlder 5 , pytestCheckHook 6 # build_requires 7 + , cython 8 # install_requires 9 , certifi 10 , importlib-metadata ··· 36 hash = "sha256-YEtcM9+GO8mYv2pyaBYmXdmWLXVuteKtQIJR4H+Xsd4="; 37 }; 38 39 + nativeBuildInputs = [ cython ]; 40 setupPyBuildFlags = [ "--inplace" ]; 41 enableParallelBuilding = true; 42
+2 -2
pkgs/development/python-modules/clickhouse-driver/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , clickhouse-cityhash 4 - , cython_3 5 , fetchFromGitHub 6 , freezegun 7 , lz4 ··· 29 }; 30 31 nativeBuildInputs = [ 32 - cython_3 33 setuptools 34 ]; 35
··· 1 { lib 2 , buildPythonPackage 3 , clickhouse-cityhash 4 + , cython 5 , fetchFromGitHub 6 , freezegun 7 , lz4 ··· 29 }; 30 31 nativeBuildInputs = [ 32 + cython 33 setuptools 34 ]; 35
+2 -3
pkgs/development/python-modules/cloudpathlib/default.nix
··· 11 , boto3 12 , psutil 13 , pydantic 14 - , pytestCheckHook 15 - , pytest_7 16 , pytest-cases 17 , pytest-cov 18 , pytest-xdist ··· 66 google-cloud-storage 67 psutil 68 pydantic 69 - (pytestCheckHook.override { pytest = pytest_7; }) 70 pytest-cases 71 pytest-cov 72 pytest-xdist
··· 11 , boto3 12 , psutil 13 , pydantic 14 + , pytest7CheckHook 15 , pytest-cases 16 , pytest-cov 17 , pytest-xdist ··· 65 google-cloud-storage 66 psutil 67 pydantic 68 + pytest7CheckHook 69 pytest-cases 70 pytest-cov 71 pytest-xdist
+9 -2
pkgs/development/python-modules/colorcet/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , param 5 , pyct 6 , pytest-mpl ··· 10 buildPythonPackage rec { 11 pname = "colorcet"; 12 version = "3.1.0"; 13 - format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-KSGzzYGiKIqvLWPbwM48JtzYgujDicxQXWiGv3qppOs="; 18 }; 19 20 - propagatedBuildInputs = [ 21 param 22 pyct 23 ];
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , setuptools 5 + , setuptools-scm 6 , param 7 , pyct 8 , pytest-mpl ··· 12 buildPythonPackage rec { 13 pname = "colorcet"; 14 version = "3.1.0"; 15 + pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-KSGzzYGiKIqvLWPbwM48JtzYgujDicxQXWiGv3qppOs="; 20 }; 21 22 + build-system = [ 23 + setuptools 24 + setuptools-scm 25 + ]; 26 + 27 + dependencies = [ 28 param 29 pyct 30 ];
+2 -2
pkgs/development/python-modules/cpyparsing/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 - , cython_3 5 , pexpect 6 , python 7 , pythonOlder ··· 23 }; 24 25 nativeBuildInputs = [ 26 - cython_3 27 setuptools 28 ]; 29
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , cython 5 , pexpect 6 , python 7 , pythonOlder ··· 23 }; 24 25 nativeBuildInputs = [ 26 + cython 27 setuptools 28 ]; 29
+2 -9
pkgs/development/python-modules/cssutils/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , pythonAtLeast 4 , pythonOlder 5 - , fetchpatch 6 , fetchPypi 7 , setuptools 8 , setuptools-scm ··· 10 , jaraco-test 11 , lxml 12 , mock 13 - , pytestCheckHook 14 , importlib-resources 15 }: 16 ··· 37 jaraco-test 38 lxml 39 mock 40 - pytestCheckHook 41 ] ++ lib.optionals (pythonOlder "3.9") [ 42 importlib-resources 43 - ]; 44 - 45 - pytestFlagsArray = [ 46 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 47 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 48 ]; 49 50 disabledTests = [
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 , fetchPypi 5 , setuptools 6 , setuptools-scm ··· 8 , jaraco-test 9 , lxml 10 , mock 11 + , pytest7CheckHook 12 , importlib-resources 13 }: 14 ··· 35 jaraco-test 36 lxml 37 mock 38 + pytest7CheckHook 39 ] ++ lib.optionals (pythonOlder "3.9") [ 40 importlib-resources 41 ]; 42 43 disabledTests = [
+2 -2
pkgs/development/python-modules/cypari2/default.nix
··· 5 , fetchPypi 6 , pari 7 , gmp 8 - , cython_3 9 , cysignals 10 }: 11 ··· 45 46 propagatedBuildInputs = [ 47 cysignals 48 - cython_3 49 ]; 50 51 checkPhase = ''
··· 5 , fetchPypi 6 , pari 7 , gmp 8 + , cython 9 , cysignals 10 }: 11 ··· 45 46 propagatedBuildInputs = [ 47 cysignals 48 + cython 49 ]; 50 51 checkPhase = ''
+2 -2
pkgs/development/python-modules/cysignals/default.nix
··· 2 , autoreconfHook 3 , fetchPypi 4 , buildPythonPackage 5 - , cython_3 6 , pariSupport ? true, pari # for interfacing with the PARI/GP signal handler 7 }: 8 ··· 34 ''; 35 36 propagatedBuildInputs = [ 37 - cython_3 38 ] ++ lib.optionals pariSupport [ 39 # When cysignals is built with pari, including cysignals into the 40 # buildInputs of another python package will cause cython to link against
··· 2 , autoreconfHook 3 , fetchPypi 4 , buildPythonPackage 5 + , cython 6 , pariSupport ? true, pari # for interfacing with the PARI/GP signal handler 7 }: 8 ··· 34 ''; 35 36 propagatedBuildInputs = [ 37 + cython 38 ] ++ lib.optionals pariSupport [ 39 # When cysignals is built with pari, including cysignals into the 40 # buildInputs of another python package will cause cython to link against
+91
pkgs/development/python-modules/cython/0.nix
···
··· 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , fetchpatch 6 + , setuptools 7 + , python 8 + , pkg-config 9 + , gdb 10 + , numpy 11 + , ncurses 12 + }: 13 + 14 + let 15 + excludedTests = [ "reimport_from_subinterpreter" ] 16 + # cython's testsuite is not working very well with libc++ 17 + # We are however optimistic about things outside of testsuite still working 18 + ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ] 19 + # Some tests in the test suite isn't working on aarch64. Disable them for 20 + # now until upstream finds a workaround. 21 + # Upstream issue here: https://github.com/cython/cython/issues/2308 22 + ++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ] 23 + ++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ] 24 + ; 25 + 26 + in buildPythonPackage rec { 27 + pname = "cython"; 28 + version = "0.29.36"; 29 + pyproject = true; 30 + 31 + src = fetchPypi { 32 + pname = "Cython"; 33 + inherit version; 34 + hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8="; 35 + }; 36 + 37 + nativeBuildInputs = [ 38 + pkg-config 39 + setuptools 40 + ]; 41 + 42 + nativeCheckInputs = [ 43 + gdb numpy ncurses 44 + ]; 45 + 46 + LC_ALL = "en_US.UTF-8"; 47 + 48 + patches = [ 49 + # backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series. 50 + # it does not affect Python code unless the code explicitly uses the feature. 51 + # trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267) 52 + ./trashcan.patch 53 + # The above commit introduces custom trashcan macros, as well as 54 + # compiler changes to use them in Cython-emitted code. The latter 55 + # change is still useful, but the former has been upstreamed as of 56 + # Python 3.8, and the patch below makes Cython use the upstream 57 + # trashcan macros whenever available. This is needed for Python 58 + # 3.11 support, because the API used in Cython's implementation 59 + # changed: https://github.com/cython/cython/pull/4475 60 + (fetchpatch { 61 + name = "disable-trashcan.patch"; 62 + url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch"; 63 + hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso="; 64 + }) 65 + ]; 66 + 67 + checkPhase = '' 68 + export HOME="$NIX_BUILD_TOP" 69 + ${python.interpreter} runtests.py -j$NIX_BUILD_CORES \ 70 + --no-code-style \ 71 + ${lib.optionalString (builtins.length excludedTests != 0) 72 + ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''} 73 + ''; 74 + 75 + # https://github.com/cython/cython/issues/2785 76 + # Temporary solution 77 + doCheck = false; 78 + # doCheck = !stdenv.isDarwin; 79 + 80 + # force regeneration of generated code in source distributions 81 + # https://github.com/cython/cython/issues/5089 82 + setupHook = ./setup-hook.sh; 83 + 84 + meta = { 85 + changelog = "https://github.com/cython/cython/blob/${version}/CHANGES.rst"; 86 + description = "An optimising static compiler for both the Python programming language and the extended Cython programming language"; 87 + homepage = "https://cython.org"; 88 + license = lib.licenses.asl20; 89 + maintainers = with lib.maintainers; [ fridh ]; 90 + }; 91 + }
+4 -24
pkgs/development/python-modules/cython/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 - , fetchpatch 6 , setuptools 7 , python 8 , pkg-config ··· 25 26 in buildPythonPackage rec { 27 pname = "cython"; 28 - version = "0.29.36"; 29 pyproject = true; 30 31 src = fetchPypi { 32 pname = "Cython"; 33 inherit version; 34 - hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8="; 35 }; 36 37 - nativeBuildInputs = [ 38 pkg-config 39 setuptools 40 ]; ··· 43 gdb numpy ncurses 44 ]; 45 46 - LC_ALL = "en_US.UTF-8"; 47 - 48 - patches = [ 49 - # backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series. 50 - # it does not affect Python code unless the code explicitly uses the feature. 51 - # trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267) 52 - ./trashcan.patch 53 - # The above commit introduces custom trashcan macros, as well as 54 - # compiler changes to use them in Cython-emitted code. The latter 55 - # change is still useful, but the former has been upstreamed as of 56 - # Python 3.8, and the patch below makes Cython use the upstream 57 - # trashcan macros whenever available. This is needed for Python 58 - # 3.11 support, because the API used in Cython's implementation 59 - # changed: https://github.com/cython/cython/pull/4475 60 - (fetchpatch { 61 - name = "disable-trashcan.patch"; 62 - url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch"; 63 - hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso="; 64 - }) 65 - ]; 66 67 checkPhase = '' 68 export HOME="$NIX_BUILD_TOP"
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 , setuptools 6 , python 7 , pkg-config ··· 24 25 in buildPythonPackage rec { 26 pname = "cython"; 27 + version = "3.0.9"; 28 pyproject = true; 29 30 src = fetchPypi { 31 pname = "Cython"; 32 inherit version; 33 + hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM="; 34 }; 35 36 + build-system = [ 37 pkg-config 38 setuptools 39 ]; ··· 42 gdb numpy ncurses 43 ]; 44 45 + env.LC_ALL = "en_US.UTF-8"; 46 47 checkPhase = '' 48 export HOME="$NIX_BUILD_TOP"
+2 -3
pkgs/development/python-modules/daqp/default.nix
··· 1 { lib 2 - , stdenv 3 , fetchFromGitHub 4 , buildPythonPackage 5 , unittestCheckHook 6 - , cython 7 , setuptools 8 , wheel 9 , numpy ··· 32 unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ]; 33 34 nativeBuildInputs = [ 35 - cython 36 setuptools 37 wheel 38 ];
··· 1 { lib 2 , fetchFromGitHub 3 , buildPythonPackage 4 , unittestCheckHook 5 + , cython_0 6 , setuptools 7 , wheel 8 , numpy ··· 31 unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ]; 32 33 nativeBuildInputs = [ 34 + cython_0 35 setuptools 36 wheel 37 ];
+2 -4
pkgs/development/python-modules/dask/default.nix
··· 38 39 buildPythonPackage rec { 40 pname = "dask"; 41 - version = "2024.1.1"; 42 pyproject = true; 43 44 disabled = pythonOlder "3.9"; ··· 47 owner = "dask"; 48 repo = "dask"; 49 rev = "refs/tags/${version}"; 50 - hash = "sha256-L8bRh2bx36CYrAFXYJF67rCeCRfm5ufhTkMFRJo0yYo="; 51 }; 52 53 nativeBuildInputs = [ ··· 127 "--reruns 3" 128 # Don't run tests that require network access 129 "-m 'not network'" 130 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 131 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 132 ]; 133 134 disabledTests = lib.optionals stdenv.isDarwin [
··· 38 39 buildPythonPackage rec { 40 pname = "dask"; 41 + version = "2024.2.1"; 42 pyproject = true; 43 44 disabled = pythonOlder "3.9"; ··· 47 owner = "dask"; 48 repo = "dask"; 49 rev = "refs/tags/${version}"; 50 + hash = "sha256-8VFtKPaF0PqCjqFB+plFe1GjUno5j7j86+wxKhzByyw="; 51 }; 52 53 nativeBuildInputs = [ ··· 127 "--reruns 3" 128 # Don't run tests that require network access 129 "-m 'not network'" 130 ]; 131 132 disabledTests = lib.optionals stdenv.isDarwin [
+1
pkgs/development/python-modules/dbt-core/default.nix
··· 58 "mashumaro" 59 "networkx" 60 "logbook" 61 "urllib3" 62 ]; 63
··· 58 "mashumaro" 59 "networkx" 60 "logbook" 61 + "pathspec" 62 "urllib3" 63 ]; 64
+2 -2
pkgs/development/python-modules/dbus-fast/default.nix
··· 1 { lib 2 , async-timeout 3 , buildPythonPackage 4 - , cython_3 5 , fetchFromGitHub 6 , poetry-core 7 , pytest-asyncio ··· 30 env.REQUIRE_CYTHON = 1; 31 32 nativeBuildInputs = [ 33 - cython_3 34 poetry-core 35 setuptools 36 wheel
··· 1 { lib 2 , async-timeout 3 , buildPythonPackage 4 + , cython 5 , fetchFromGitHub 6 , poetry-core 7 , pytest-asyncio ··· 30 env.REQUIRE_CYTHON = 1; 31 32 nativeBuildInputs = [ 33 + cython 34 poetry-core 35 setuptools 36 wheel
+2 -6
pkgs/development/python-modules/deal/default.nix
··· 19 20 buildPythonPackage rec { 21 pname = "deal"; 22 - version = "4.24.3"; 23 format = "pyproject"; 24 disabled = pythonOlder "3.7"; 25 ··· 27 owner = "life4"; 28 repo = pname; 29 rev = "refs/tags/${version}"; 30 - hash = "sha256-QlM3d/jmg6v3L3D45+cgcCej71U1dl4uZ6sAYGGm3tU="; 31 }; 32 33 postPatch = '' ··· 60 vaa 61 urllib3 62 flake8 63 - ]; 64 - 65 - pytestFlagsArray = [ 66 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 67 ]; 68 69 disabledTests = [
··· 19 20 buildPythonPackage rec { 21 pname = "deal"; 22 + version = "4.24.4"; 23 format = "pyproject"; 24 disabled = pythonOlder "3.7"; 25 ··· 27 owner = "life4"; 28 repo = pname; 29 rev = "refs/tags/${version}"; 30 + hash = "sha256-4orpoYfPGSvquhg9w63uUe8QbBa2RUpxaEJ9uy28+fU="; 31 }; 32 33 postPatch = '' ··· 60 vaa 61 urllib3 62 flake8 63 ]; 64 65 disabledTests = [
+2 -7
pkgs/development/python-modules/demes/default.nix
··· 5 , ruamel-yaml 6 , attrs 7 , pythonOlder 8 - , pytestCheckHook 9 , pytest-xdist 10 , numpy 11 }: ··· 36 ''; 37 38 nativeCheckInputs = [ 39 - pytestCheckHook 40 pytest-xdist 41 numpy 42 - ]; 43 - 44 - pytestFlagsArray = [ 45 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 46 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 47 ]; 48 49 disabledTestPaths = [
··· 5 , ruamel-yaml 6 , attrs 7 , pythonOlder 8 + , pytest7CheckHook 9 , pytest-xdist 10 , numpy 11 }: ··· 36 ''; 37 38 nativeCheckInputs = [ 39 + pytest7CheckHook 40 pytest-xdist 41 numpy 42 ]; 43 44 disabledTestPaths = [
+2 -7
pkgs/development/python-modules/detect-secrets/default.nix
··· 5 , mock 6 , pkgs 7 , pyahocorasick 8 - , pytestCheckHook 9 , pythonOlder 10 , pyyaml 11 , requests ··· 37 38 nativeCheckInputs = [ 39 mock 40 - pytestCheckHook 41 responses 42 unidiff 43 pkgs.gitMinimal 44 - ]; 45 - 46 - pytestFlagsArray = [ 47 - # Pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 48 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 49 ]; 50 51 preCheck = ''
··· 5 , mock 6 , pkgs 7 , pyahocorasick 8 + , pytest7CheckHook 9 , pythonOlder 10 , pyyaml 11 , requests ··· 37 38 nativeCheckInputs = [ 39 mock 40 + pytest7CheckHook 41 responses 42 unidiff 43 pkgs.gitMinimal 44 ]; 45 46 preCheck = ''
-5
pkgs/development/python-modules/devtools/default.nix
··· 39 pytest-mock 40 ]; 41 42 - pytestFlagsArray = [ 43 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 44 - "-W ignore::pytest.PytestRemovedIn8Warning" 45 - ]; 46 - 47 disabledTests = [ 48 # Test for Windows32 49 "test_print_subprocess"
··· 39 pytest-mock 40 ]; 41 42 disabledTests = [ 43 # Test for Windows32 44 "test_print_subprocess"
+5 -4
pkgs/development/python-modules/diffsync/default.nix
··· 27 pythonRelaxDepsHook 28 ]; 29 30 propagatedBuildInputs = [ 31 colorama 32 packaging 33 pydantic 34 redis 35 structlog 36 - ]; 37 - 38 - pythonRelaxDeps = [ 39 - "structlog" 40 ]; 41 42 pythonImportsCheck = [
··· 27 pythonRelaxDepsHook 28 ]; 29 30 + pythonRelaxDeps = [ 31 + "packaging" 32 + "structlog" 33 + ]; 34 + 35 propagatedBuildInputs = [ 36 colorama 37 packaging 38 pydantic 39 redis 40 structlog 41 ]; 42 43 pythonImportsCheck = [
+7 -6
pkgs/development/python-modules/django-filter/default.nix
··· 6 , djangorestframework 7 , pytestCheckHook 8 , pytest-django 9 - , python 10 }: 11 12 buildPythonPackage rec { 13 pname = "django-filter"; 14 - version = "23.5"; 15 - format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - hash = "sha256-Z1g6pDuR/oxJ90qDLZX02EQr5ij9TG1l6fgR9RU6Tlw="; 20 }; 21 22 - nativeBuildInputs = [ flit-core ]; 23 24 - propagatedBuildInputs = [ django ]; 25 26 pythonImportsCheck = [ 27 "django_filters" ··· 31 djangorestframework 32 pytestCheckHook 33 pytest-django 34 ]; 35 36 env.DJANGO_SETTINGS_MODULE = "tests.settings";
··· 6 , djangorestframework 7 , pytestCheckHook 8 , pytest-django 9 + , pytz 10 }: 11 12 buildPythonPackage rec { 13 pname = "django-filter"; 14 + version = "24.1"; 15 + pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 + hash = "sha256-ZctDzicgd+Wsaq4QVNdsEhzWtVLilqgqE5Iek3G6+ME="; 20 }; 21 22 + build-system = [ flit-core ]; 23 24 + dependencies = [ django ]; 25 26 pythonImportsCheck = [ 27 "django_filters" ··· 31 djangorestframework 32 pytestCheckHook 33 pytest-django 34 + pytz 35 ]; 36 37 env.DJANGO_SETTINGS_MODULE = "tests.settings";
+2 -7
pkgs/development/python-modules/djangorestframework/default.nix
··· 6 , django-guardian 7 , pythonOlder 8 , pytest-django 9 - , pytestCheckHook 10 , pytz 11 , pyyaml 12 , uritemplate ··· 32 33 nativeCheckInputs = [ 34 pytest-django 35 - pytestCheckHook 36 37 # optional tests 38 coreapi 39 django-guardian 40 pyyaml 41 uritemplate 42 - ]; 43 - 44 - pytestFlagsArray = [ 45 - # ytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 46 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 47 ]; 48 49 pythonImportsCheck = [ "rest_framework" ];
··· 6 , django-guardian 7 , pythonOlder 8 , pytest-django 9 + , pytest7CheckHook 10 , pytz 11 , pyyaml 12 , uritemplate ··· 32 33 nativeCheckInputs = [ 34 pytest-django 35 + pytest7CheckHook 36 37 # optional tests 38 coreapi 39 django-guardian 40 pyyaml 41 uritemplate 42 ]; 43 44 pythonImportsCheck = [ "rest_framework" ];
+2 -2
pkgs/development/python-modules/dtlssocket/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , autoconf 5 - , cython 6 , setuptools 7 }: 8 ··· 20 21 nativeBuildInputs = [ 22 autoconf 23 - cython 24 setuptools 25 ]; 26
··· 2 , buildPythonPackage 3 , fetchPypi 4 , autoconf 5 + , cython_0 6 , setuptools 7 }: 8 ··· 20 21 nativeBuildInputs = [ 22 autoconf 23 + cython_0 24 setuptools 25 ]; 26
+4 -1
pkgs/development/python-modules/ed25519/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage }: 2 3 buildPythonPackage rec { 4 pname = "ed25519"; 5 version = "1.5"; 6 format = "setuptools"; 7 8 src = fetchPypi { 9 inherit pname version;
··· 1 + { lib, fetchPypi, buildPythonPackage, pythonAtLeast }: 2 3 buildPythonPackage rec { 4 pname = "ed25519"; 5 version = "1.5"; 6 format = "setuptools"; 7 + 8 + # last commit in 2019, various compat issues with 3.12 9 + disabled = pythonAtLeast "3.12"; 10 11 src = fetchPypi { 12 inherit pname version;
+2 -2
pkgs/development/python-modules/editdistance/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 - , cython_3 6 , pdm-backend 7 , setuptools 8 , pythonOlder ··· 23 }; 24 25 nativeBuildInputs = [ 26 - cython_3 27 pdm-backend 28 setuptools 29 ];
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 + , cython 6 , pdm-backend 7 , setuptools 8 , pythonOlder ··· 23 }; 24 25 nativeBuildInputs = [ 26 + cython 27 pdm-backend 28 setuptools 29 ];
+2 -2
pkgs/development/python-modules/editdistpy/default.nix
··· 7 , pythonOlder 8 9 , setuptools 10 - , cython_3 11 12 , symspellpy 13 , numpy ··· 30 31 build-system = [ 32 setuptools 33 - cython_3 34 ]; 35 36 # error: infinite recursion encountered
··· 7 , pythonOlder 8 9 , setuptools 10 + , cython 11 12 , symspellpy 13 , numpy ··· 30 31 build-system = [ 32 setuptools 33 + cython 34 ]; 35 36 # error: infinite recursion encountered
+4 -5
pkgs/development/python-modules/falcon/default.nix
··· 6 , fetchFromGitHub 7 8 # build 9 - , cython_3 10 , setuptools 11 12 # tests ··· 17 , mujson 18 , orjson 19 , pytest-asyncio 20 - , pytestCheckHook 21 - , pytest_7 22 , pyyaml 23 , rapidjson 24 , requests ··· 44 nativeBuildInputs = [ 45 setuptools 46 ] ++ lib.optionals (!isPyPy) [ 47 - cython_3 48 ]; 49 50 __darwinAllowLocalNetworking = true; ··· 61 62 nativeCheckInputs = [ 63 # https://github.com/falconry/falcon/blob/master/requirements/tests 64 - (pytestCheckHook.override { pytest = pytest_7; }) 65 pyyaml 66 requests 67 rapidjson
··· 6 , fetchFromGitHub 7 8 # build 9 + , cython 10 , setuptools 11 12 # tests ··· 17 , mujson 18 , orjson 19 , pytest-asyncio 20 + , pytest7CheckHook 21 , pyyaml 22 , rapidjson 23 , requests ··· 43 nativeBuildInputs = [ 44 setuptools 45 ] ++ lib.optionals (!isPyPy) [ 46 + cython 47 ]; 48 49 __darwinAllowLocalNetworking = true; ··· 60 61 nativeCheckInputs = [ 62 # https://github.com/falconry/falcon/blob/master/requirements/tests 63 + pytest7CheckHook 64 pyyaml 65 requests 66 rapidjson
+11 -6
pkgs/development/python-modules/fastjsonschema/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pytestCheckHook 6 , pythonOlder 7 }: 8 9 buildPythonPackage rec { 10 pname = "fastjsonschema"; 11 - version = "2.18.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; ··· 18 repo = "python-fastjsonschema"; 19 rev = "v${version}"; 20 fetchSubmodules = true; 21 - hash = "sha256-t6JnqQgsWAL8oL8+LO0xrXMYsZOlTF3DlXkRiqUzYtU="; 22 }; 23 24 - nativeCheckInputs = [ 25 - pytestCheckHook 26 ]; 27 28 - pytestFlagsArray = [ 29 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 30 ]; 31 32 dontUseSetuptoolsCheck = true;
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchFromGitHub 5 + , fetchpatch2 6 , pytestCheckHook 7 , pythonOlder 8 }: 9 10 buildPythonPackage rec { 11 pname = "fastjsonschema"; 12 + version = "2.19.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; ··· 19 repo = "python-fastjsonschema"; 20 rev = "v${version}"; 21 fetchSubmodules = true; 22 + hash = "sha256-UxcxVB4ldnGAYJKWEccivon1CwZD588mNiVJOJPNeN8="; 23 }; 24 25 + patches = [ 26 + (fetchpatch2 { 27 + name = "fastjsonschema-pytest8-compat.patch"; 28 + url = "https://github.com/horejsek/python-fastjsonschema/commit/efc04daf4124a598182dfcfd497615cd1e633d18.patch"; 29 + hash = "sha256-G1/PIpdN+KFfRP9pUFf/ANXLq3mzrocEHyBNWQMVOZM="; 30 + }) 31 ]; 32 33 + nativeCheckInputs = [ 34 + pytestCheckHook 35 ]; 36 37 dontUseSetuptoolsCheck = true;
+2 -6
pkgs/development/python-modules/favicon/default.nix
··· 2 , beautifulsoup4 3 , buildPythonPackage 4 , fetchPypi 5 - , pytestCheckHook 6 , pythonOlder 7 , requests 8 , requests-mock ··· 30 ]; 31 32 nativeCheckInputs = [ 33 - pytestCheckHook 34 requests-mock 35 - ]; 36 - 37 - pytestFlagsArray = [ 38 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 39 ]; 40 41 pythonImportsCheck = [
··· 2 , beautifulsoup4 3 , buildPythonPackage 4 , fetchPypi 5 + , pytest7CheckHook 6 , pythonOlder 7 , requests 8 , requests-mock ··· 30 ]; 31 32 nativeCheckInputs = [ 33 + pytest7CheckHook 34 requests-mock 35 ]; 36 37 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/fiona/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 - , cython_3 6 , gdal 7 , oldest-supported-numpy 8 , setuptools ··· 34 }; 35 36 nativeBuildInputs = [ 37 - cython_3 38 gdal # for gdal-config 39 oldest-supported-numpy 40 setuptools
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 + , cython 6 , gdal 7 , oldest-supported-numpy 8 , setuptools ··· 34 }; 35 36 nativeBuildInputs = [ 37 + cython 38 gdal # for gdal-config 39 oldest-supported-numpy 40 setuptools
+9 -3
pkgs/development/python-modules/flaky/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , mock 5 , pytest 6 }: 7 8 buildPythonPackage rec { 9 pname = "flaky"; 10 - version = "3.7.0"; 11 - format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 - hash = "sha256-OtEAeAchoZEfV6FlgJt+omWnhjMFrLZnCCIIIMr4qg0="; 16 }; 17 18 nativeCheckInputs = [ 19 mock ··· 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/box/flaky"; 33 description = "Plugin for nose or py.test that automatically reruns flaky tests"; 34 license = licenses.asl20;
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , setuptools 5 , mock 6 , pytest 7 }: 8 9 buildPythonPackage rec { 10 pname = "flaky"; 11 + version = "3.8.1"; 12 + pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 + hash = "sha256-RyBKgeyQXz1az71h2uq8raj51AMWFtm8sGGEYXKWmfU="; 17 }; 18 + 19 + build-system = [ 20 + setuptools 21 + ]; 22 23 nativeCheckInputs = [ 24 mock ··· 34 ''; 35 36 meta = with lib; { 37 + changelog = "https://github.com/box/flaky/blob/v${version}/HISTORY.rst"; 38 homepage = "https://github.com/box/flaky"; 39 description = "Plugin for nose or py.test that automatically reruns flaky tests"; 40 license = licenses.asl20;
+2 -1
pkgs/development/python-modules/flet/default.nix
··· 36 ]; 37 38 pythonRelaxDeps = [ 39 - "websockets" 40 "cookiecutter" 41 "watchdog" 42 ]; 43 44 propagatedBuildInputs = [
··· 36 ]; 37 38 pythonRelaxDeps = [ 39 "cookiecutter" 40 + "packaging" 41 "watchdog" 42 + "websockets" 43 ]; 44 45 propagatedBuildInputs = [
+8 -7
pkgs/development/python-modules/flexmock/default.nix
··· 3 , fetchPypi 4 , pytestCheckHook 5 , pythonOlder 6 , teamcity-messages 7 , testtools 8 }: 9 10 buildPythonPackage rec { 11 pname = "flexmock"; 12 - version = "0.11.3"; 13 - format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - hash = "sha256-sf419qXzJUe1zTGhXAYNmrhj3Aiv8BjNc9x40bZR7dQ="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 teamcity-messages 25 testtools 26 - ]; 27 - 28 - disabledTests = [ 29 - "test_failed_test_case" 30 ]; 31 32 pythonImportsCheck = [
··· 3 , fetchPypi 4 , pytestCheckHook 5 , pythonOlder 6 + , poetry-core 7 , teamcity-messages 8 , testtools 9 }: 10 11 buildPythonPackage rec { 12 pname = "flexmock"; 13 + version = "0.12.0"; 14 + pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 + hash = "sha256-YdBvPRRCuBW3qoWh9HvoONBW9fXRTO/teuv7A0c9FKs="; 21 }; 22 23 + build-system = [ 24 + poetry-core 25 + ]; 26 + 27 nativeCheckInputs = [ 28 pytestCheckHook 29 teamcity-messages 30 testtools 31 ]; 32 33 pythonImportsCheck = [
+2 -3
pkgs/development/python-modules/flow-record/default.nix
··· 5 , fetchFromGitHub 6 , lz4 7 , msgpack 8 - , pytestCheckHook 9 - , pytest_7 10 , pythonOlder 11 , setuptools 12 , setuptools-scm ··· 52 }; 53 54 nativeCheckInputs = [ 55 - (pytestCheckHook.override { pytest = pytest_7; }) 56 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 57 58 pythonImportsCheck = [
··· 5 , fetchFromGitHub 6 , lz4 7 , msgpack 8 + , pytest7CheckHook 9 , pythonOlder 10 , setuptools 11 , setuptools-scm ··· 51 }; 52 53 nativeCheckInputs = [ 54 + pytest7CheckHook 55 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 56 57 pythonImportsCheck = [
+2 -3
pkgs/development/python-modules/fonttools/default.nix
··· 21 , xattr 22 , skia-pathops 23 , uharfbuzz 24 - , pytestCheckHook 25 - , pytest_7 26 }: 27 28 buildPythonPackage rec { ··· 65 nativeCheckInputs = [ 66 # test suite fails with pytest>=8.0.1 67 # https://github.com/fonttools/fonttools/issues/3458 68 - (pytestCheckHook.override { pytest = pytest_7; }) 69 ] ++ lib.concatLists (lib.attrVals ([ 70 "woff" 71 # "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies
··· 21 , xattr 22 , skia-pathops 23 , uharfbuzz 24 + , pytest7CheckHook 25 }: 26 27 buildPythonPackage rec { ··· 64 nativeCheckInputs = [ 65 # test suite fails with pytest>=8.0.1 66 # https://github.com/fonttools/fonttools/issues/3458 67 + pytest7CheckHook 68 ] ++ lib.concatLists (lib.attrVals ([ 69 "woff" 70 # "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies
+2 -2
pkgs/development/python-modules/fpylll/default.nix
··· 5 6 # build-system 7 , cysignals 8 - , cython_3 9 , pkgconfig 10 , setuptools 11 ··· 43 ]; 44 45 nativeBuildInputs = [ 46 - cython_3 47 cysignals 48 pkgconfig 49 setuptools
··· 5 6 # build-system 7 , cysignals 8 + , cython 9 , pkgconfig 10 , setuptools 11 ··· 43 ]; 44 45 nativeBuildInputs = [ 46 + cython 47 cysignals 48 pkgconfig 49 setuptools
+2 -2
pkgs/development/python-modules/frozenlist/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , expandvars 5 , fetchFromGitHub 6 , pep517 ··· 30 31 nativeBuildInputs = [ 32 expandvars 33 - cython_3 34 pep517 35 setuptools 36 wheel
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , expandvars 5 , fetchFromGitHub 6 , pep517 ··· 30 31 nativeBuildInputs = [ 32 expandvars 33 + cython 34 pep517 35 setuptools 36 wheel
+2 -2
pkgs/development/python-modules/fugashi/default.nix
··· 3 , pythonOlder 4 , pytestCheckHook 5 , buildPythonPackage 6 - , cython 7 , mecab 8 , setuptools-scm 9 , ipadic ··· 24 hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU="; 25 }; 26 27 - nativeBuildInputs = [ cython mecab setuptools-scm ]; 28 29 nativeCheckInputs = [ ipadic pytestCheckHook ] 30 ++ passthru.optional-dependencies.unidic-lite;
··· 3 , pythonOlder 4 , pytestCheckHook 5 , buildPythonPackage 6 + , cython_0 7 , mecab 8 , setuptools-scm 9 , ipadic ··· 24 hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU="; 25 }; 26 27 + nativeBuildInputs = [ cython_0 mecab setuptools-scm ]; 28 29 nativeCheckInputs = [ ipadic pytestCheckHook ] 30 ++ passthru.optional-dependencies.unidic-lite;
+2 -2
pkgs/development/python-modules/gbinder-python/default.nix
··· 1 { lib 2 , fetchFromGitHub 3 , buildPythonPackage 4 - , cython 5 , pkg-config 6 , libgbinder 7 }: ··· 23 ]; 24 25 nativeBuildInputs = [ 26 - cython 27 pkg-config 28 ]; 29
··· 1 { lib 2 , fetchFromGitHub 3 , buildPythonPackage 4 + , cython_0 5 , pkg-config 6 , libgbinder 7 }: ··· 23 ]; 24 25 nativeBuildInputs = [ 26 + cython_0 27 pkg-config 28 ]; 29
+2 -2
pkgs/development/python-modules/gevent/default.nix
··· 5 , python 6 , libev 7 , cffi 8 - , cython_3 9 , greenlet 10 , importlib-metadata 11 , setuptools ··· 34 }; 35 36 nativeBuildInputs = [ 37 - cython_3 38 setuptools 39 wheel 40 ] ++ lib.optionals (!isPyPy) [
··· 5 , python 6 , libev 7 , cffi 8 + , cython 9 , greenlet 10 , importlib-metadata 11 , setuptools ··· 34 }; 35 36 nativeBuildInputs = [ 37 + cython 38 setuptools 39 wheel 40 ] ++ lib.optionals (!isPyPy) [
+8 -14
pkgs/development/python-modules/graphene-django/default.nix
··· 1 { stdenv 2 , lib 3 , buildPythonPackage 4 - , pythonAtLeast 5 , pythonOlder 6 , fetchFromGitHub 7 ··· 17 , py 18 , pytest-django 19 , pytest-random-order 20 - , pytestCheckHook 21 }: 22 23 buildPythonPackage rec { ··· 58 py 59 pytest-django 60 pytest-random-order 61 - pytestCheckHook 62 ]; 63 64 - pytestFlagsArray = [ 65 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 66 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 67 - ]; 68 - 69 - disabledTests = lib.optionals (pythonAtLeast "3.11") [ 70 - # Python 3.11 support, https://github.com/graphql-python/graphene-django/pull/1365 71 - "test_django_objecttype_convert_choices_enum_naming_collisions" 72 - "test_django_objecttype_choices_custom_enum_name" 73 - "test_django_objecttype_convert_choices_enum_list" 74 - "test_schema_representation" 75 ] ++ lib.optionals stdenv.isDarwin [ 76 # this test touches files in the "/" directory and fails in darwin sandbox 77 "test_should_filepath_convert_string"
··· 1 { stdenv 2 , lib 3 , buildPythonPackage 4 , pythonOlder 5 , fetchFromGitHub 6 ··· 16 , py 17 , pytest-django 18 , pytest-random-order 19 + , pytest7CheckHook 20 }: 21 22 buildPythonPackage rec { ··· 57 py 58 pytest-django 59 pytest-random-order 60 + pytest7CheckHook 61 ]; 62 63 + disabledTests = [ 64 + # https://github.com/graphql-python/graphene-django/issues/1510 65 + "test_should_filepath_convert_string" 66 + "test_should_choice_convert_enum" 67 + "test_should_multiplechoicefield_convert_to_list_of_enum" 68 + "test_perform_mutate_success_with_enum_choice_field" 69 ] ++ lib.optionals stdenv.isDarwin [ 70 # this test touches files in the "/" directory and fails in darwin sandbox 71 "test_should_filepath_convert_string"
+2 -3
pkgs/development/python-modules/graphene/default.nix
··· 8 , pytest-asyncio 9 , pytest-benchmark 10 , pytest-mock 11 - , pytestCheckHook 12 , pythonOlder 13 , pytz 14 , snapshottest ··· 39 ]; 40 41 nativeCheckInputs = [ 42 - pytestCheckHook 43 pytest-asyncio 44 pytest-benchmark 45 pytest-mock ··· 49 50 pytestFlagsArray = [ 51 "--benchmark-disable" 52 - "-W ignore::pytest.PytestRemovedIn8Warning" 53 ]; 54 55 pythonImportsCheck = [
··· 8 , pytest-asyncio 9 , pytest-benchmark 10 , pytest-mock 11 + , pytest7CheckHook 12 , pythonOlder 13 , pytz 14 , snapshottest ··· 39 ]; 40 41 nativeCheckInputs = [ 42 + pytest7CheckHook 43 pytest-asyncio 44 pytest-benchmark 45 pytest-mock ··· 49 50 pytestFlagsArray = [ 51 "--benchmark-disable" 52 ]; 53 54 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/h5py/default.nix
··· 7 , wheel 8 , numpy 9 , hdf5 10 - , cython 11 , pkgconfig 12 , mpi4py ? null 13 , openssh ··· 50 preBuild = lib.optionalString mpiSupport "export CC=${lib.getDev mpi}/bin/mpicc"; 51 52 nativeBuildInputs = [ 53 - cython 54 oldest-supported-numpy 55 pkgconfig 56 setuptools
··· 7 , wheel 8 , numpy 9 , hdf5 10 + , cython_0 11 , pkgconfig 12 , mpi4py ? null 13 , openssh ··· 50 preBuild = lib.optionalString mpiSupport "export CC=${lib.getDev mpi}/bin/mpicc"; 51 52 nativeBuildInputs = [ 53 + cython_0 54 oldest-supported-numpy 55 pkgconfig 56 setuptools
+2 -2
pkgs/development/python-modules/hatchling/default.nix
··· 20 21 buildPythonPackage rec { 22 pname = "hatchling"; 23 - version = "1.21.1"; 24 format = "pyproject"; 25 disabled = pythonOlder "3.8"; 26 27 src = fetchPypi { 28 inherit pname version; 29 - hash = "sha256-u6RARToiTn1EeEV/oujYw2M3Zbr6Apdaa1O5v5F5gLw="; 30 }; 31 32 # listed in backend/pyproject.toml
··· 20 21 buildPythonPackage rec { 22 pname = "hatchling"; 23 + version = "1.22.4"; 24 format = "pyproject"; 25 disabled = pythonOlder "3.8"; 26 27 src = fetchPypi { 28 inherit pname version; 29 + hash = "sha256-ii3OyW1/uEg4LvWEjlrEP9rmQfNaCKP6tRFr1JXzQW4="; 30 }; 31 32 # listed in backend/pyproject.toml
+2 -6
pkgs/development/python-modules/hid-parser/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , setuptools 5 - , pytestCheckHook 6 , hypothesis 7 }: 8 ··· 21 ]; 22 23 nativeCheckInputs = [ 24 - pytestCheckHook 25 hypothesis 26 - ]; 27 - 28 - pytestFlagsArray = [ 29 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 30 ]; 31 32 pythonImportsCheck = [ "hid_parser" ];
··· 2 , buildPythonPackage 3 , fetchPypi 4 , setuptools 5 + , pytest7CheckHook 6 , hypothesis 7 }: 8 ··· 21 ]; 22 23 nativeCheckInputs = [ 24 + pytest7CheckHook 25 hypothesis 26 ]; 27 28 pythonImportsCheck = [ "hid_parser" ];
+4 -4
pkgs/development/python-modules/hidapi/default.nix
··· 3 , buildPythonPackage 4 , fetchPypi 5 , xcbuild 6 - , cython 7 , libusb1 8 , udev 9 , darwin ··· 19 sha256 = "a7cb029286ced5426a381286526d9501846409701a29c2538615c3d1a612b8be"; 20 }; 21 22 - nativeBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ]; 23 24 - propagatedBuildInputs = [ cython ] 25 - ++ lib.optionals stdenv.isLinux [ libusb1 udev ] 26 ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]); 27 28 # Fix the USB backend library lookup
··· 3 , buildPythonPackage 4 , fetchPypi 5 , xcbuild 6 + , cython_0 7 , libusb1 8 , udev 9 , darwin ··· 19 sha256 = "a7cb029286ced5426a381286526d9501846409701a29c2538615c3d1a612b8be"; 20 }; 21 22 + nativeBuildInputs = [ cython_0 ] 23 + ++ lib.optionals stdenv.isDarwin [ xcbuild ]; 24 25 + propagatedBuildInputs = lib.optionals stdenv.isLinux [ libusb1 udev ] 26 ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]); 27 28 # Fix the USB backend library lookup
+2 -3
pkgs/development/python-modules/homematicip/default.nix
··· 5 , async-timeout 6 , buildPythonPackage 7 , fetchFromGitHub 8 - , pytestCheckHook 9 - , pytest_7 10 , pythonAtLeast 11 , pythonOlder 12 , pytest-aiohttp ··· 50 aiohttp-wsgi 51 pytest-aiohttp 52 pytest-asyncio 53 - (pytestCheckHook.override { pytest = pytest_7; }) 54 ]; 55 56 pytestFlagsArray = [
··· 5 , async-timeout 6 , buildPythonPackage 7 , fetchFromGitHub 8 + , pytest7CheckHook 9 , pythonAtLeast 10 , pythonOlder 11 , pytest-aiohttp ··· 49 aiohttp-wsgi 50 pytest-aiohttp 51 pytest-asyncio 52 + pytest7CheckHook 53 ]; 54 55 pytestFlagsArray = [
+2 -2
pkgs/development/python-modules/hypothesis/default.nix
··· 22 23 buildPythonPackage rec { 24 pname = "hypothesis"; 25 - version = "6.98.17"; 26 pyproject = true; 27 28 disabled = pythonOlder "3.7"; ··· 31 owner = "HypothesisWorks"; 32 repo = "hypothesis"; 33 rev = "hypothesis-python-${version}"; 34 - hash = "sha256-2knFmaa334vFo8bbLCmrWAXRDXFcC+GPRqj7RG3FqEQ="; 35 }; 36 37 # I tried to package sphinx-selective-exclude, but it throws
··· 22 23 buildPythonPackage rec { 24 pname = "hypothesis"; 25 + version = "6.99.12"; 26 pyproject = true; 27 28 disabled = pythonOlder "3.7"; ··· 31 owner = "HypothesisWorks"; 32 repo = "hypothesis"; 33 rev = "hypothesis-python-${version}"; 34 + hash = "sha256-0nzjRDv4L3bxxnC0lBY5S7FP9CFhyzHzNchWXoX91Zg="; 35 }; 36 37 # I tried to package sphinx-selective-exclude, but it throws
+2 -2
pkgs/development/python-modules/in-n-out/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , fetchPypi 5 , future 6 , pytestCheckHook ··· 25 }; 26 27 nativeBuildInputs = [ 28 - cython_3 29 hatchling 30 hatch-vcs 31 ];
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , fetchPypi 5 , future 6 , pytestCheckHook ··· 25 }; 26 27 nativeBuildInputs = [ 28 + cython 29 hatchling 30 hatch-vcs 31 ];
+2 -3
pkgs/development/python-modules/ipython/default.nix
··· 22 # Test dependencies 23 , pickleshare 24 , pytest-asyncio 25 - , pytestCheckHook 26 - , pytest_7 27 , testpath 28 }: 29 ··· 72 nativeCheckInputs = [ 73 pickleshare 74 pytest-asyncio 75 - (pytestCheckHook.override { pytest = pytest_7; }) 76 testpath 77 ]; 78
··· 22 # Test dependencies 23 , pickleshare 24 , pytest-asyncio 25 + , pytest7CheckHook 26 , testpath 27 }: 28 ··· 71 nativeCheckInputs = [ 72 pickleshare 73 pytest-asyncio 74 + pytest7CheckHook 75 testpath 76 ]; 77
+2 -7
pkgs/development/python-modules/ipywidgets/default.nix
··· 8 , jsonschema 9 , jupyterlab-widgets 10 , lib 11 - , pytestCheckHook 12 , pytz 13 , traitlets 14 , widgetsnbextension ··· 40 nativeCheckInputs = [ 41 ipykernel 42 jsonschema 43 - pytestCheckHook 44 pytz 45 - ]; 46 - 47 - pytestFlagsArray = [ 48 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 49 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 50 ]; 51 52 meta = {
··· 8 , jsonschema 9 , jupyterlab-widgets 10 , lib 11 + , pytest7CheckHook 12 , pytz 13 , traitlets 14 , widgetsnbextension ··· 40 nativeCheckInputs = [ 41 ipykernel 42 jsonschema 43 + pytest7CheckHook 44 pytz 45 ]; 46 47 meta = {
+2 -2
pkgs/development/python-modules/isort/default.nix
··· 52 "--ignore=tests/benchmark/" # requires pytest-benchmark 53 "--ignore=tests/integration/" # pulls in 10 other packages 54 "--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black 55 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 56 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 57 ]; 58 59 disabledTests = [ ··· 74 "test_value_assignment_list" 75 # profiles not available 76 "test_isort_supports_shared_profiles_issue_970" 77 ]; 78 79 meta = with lib; {
··· 52 "--ignore=tests/benchmark/" # requires pytest-benchmark 53 "--ignore=tests/integration/" # pulls in 10 other packages 54 "--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black 55 ]; 56 57 disabledTests = [ ··· 72 "test_value_assignment_list" 73 # profiles not available 74 "test_isort_supports_shared_profiles_issue_970" 75 + # https://github.com/PyCQA/isort/issues/2234 76 + "test_isort_should_warn_on_empty_custom_config_issue_1433" 77 ]; 78 79 meta = with lib; {
+2 -6
pkgs/development/python-modules/json-tricks/default.nix
··· 2 , fetchFromGitHub 3 , buildPythonPackage 4 , pythonOlder 5 - , pytestCheckHook 6 , numpy 7 , pandas 8 , pytz ··· 26 numpy 27 pandas 28 pytz 29 - pytestCheckHook 30 - ]; 31 - 32 - pytestFlagsArray = [ 33 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 34 ]; 35 36 pythonImportsCheck = [
··· 2 , fetchFromGitHub 3 , buildPythonPackage 4 , pythonOlder 5 + , pytest7CheckHook 6 , numpy 7 , pandas 8 , pytz ··· 26 numpy 27 pandas 28 pytz 29 + pytest7CheckHook 30 ]; 31 32 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/kivy/default.nix
··· 1 { lib, stdenv 2 , buildPythonPackage, fetchFromGitHub, fetchpatch 3 - , pkg-config, cython, docutils 4 , kivy-garden 5 , mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer 6 , Accelerate, ApplicationServices, AVFoundation, libcxx ··· 31 32 nativeBuildInputs = [ 33 pkg-config 34 - cython 35 docutils 36 ]; 37
··· 1 { lib, stdenv 2 , buildPythonPackage, fetchFromGitHub, fetchpatch 3 + , pkg-config, cython_0, docutils 4 , kivy-garden 5 , mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer 6 , Accelerate, ApplicationServices, AVFoundation, libcxx ··· 31 32 nativeBuildInputs = [ 33 pkg-config 34 + cython_0 35 docutils 36 ]; 37
+2 -7
pkgs/development/python-modules/kombu/default.nix
··· 15 , pycurl 16 , pymongo 17 #, pyro4 18 - , pytestCheckHook 19 , pythonOlder 20 , pyyaml 21 , redis ··· 89 nativeCheckInputs = [ 90 case 91 hypothesis 92 - pytestCheckHook 93 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 94 - 95 - pytestFlagsArray = [ 96 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 97 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 98 - ]; 99 100 pythonImportsCheck = [ 101 "kombu"
··· 15 , pycurl 16 , pymongo 17 #, pyro4 18 + , pytest7CheckHook 19 , pythonOlder 20 , pyyaml 21 , redis ··· 89 nativeCheckInputs = [ 90 case 91 hypothesis 92 + pytest7CheckHook 93 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 94 95 pythonImportsCheck = [ 96 "kombu"
+5
pkgs/development/python-modules/kubernetes/default.nix
··· 36 hash = "sha256-NKrxv5a5gkgpNG7yViTKYBYnU249taWl6fkPJa7/Rzo="; 37 }; 38 39 propagatedBuildInputs = [ 40 adal 41 certifi
··· 36 hash = "sha256-NKrxv5a5gkgpNG7yViTKYBYnU249taWl6fkPJa7/Rzo="; 37 }; 38 39 + postPatch = '' 40 + substituteInPlace ./kubernetes/base/config/kube_config_test.py \ 41 + --replace-fail assertEquals assertEqual 42 + ''; 43 + 44 propagatedBuildInputs = [ 45 adal 46 certifi
+3 -2
pkgs/development/python-modules/langchain-core/default.nix
··· 16 17 buildPythonPackage rec { 18 pname = "langchain-core"; 19 - version = "0.1.32"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; ··· 24 src = fetchPypi { 25 pname = "langchain_core"; 26 inherit version; 27 - hash = "sha256-1iaDvsvyD1HxKHV5GgQjIPReqgyHomfTC8A7waB/XsI="; 28 }; 29 30 pythonRelaxDeps = [ 31 "langsmith" 32 ]; 33 34 nativeBuildInputs = [
··· 16 17 buildPythonPackage rec { 18 pname = "langchain-core"; 19 + version = "0.1.33"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; ··· 24 src = fetchPypi { 25 pname = "langchain_core"; 26 inherit version; 27 + hash = "sha256-VF7/Peg8xYIxvSsMbWcjI/wgd7lNMmuhoyGRGK8dGmY="; 28 }; 29 30 pythonRelaxDeps = [ 31 "langsmith" 32 + "packaging" 33 ]; 34 35 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/levenshtein/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , cmake 5 - , cython_3 6 , fetchFromGitHub 7 , pytestCheckHook 8 , pythonOlder ··· 28 29 nativeBuildInputs = [ 30 cmake 31 - cython_3 32 scikit-build 33 ]; 34
··· 2 , stdenv 3 , buildPythonPackage 4 , cmake 5 + , cython 6 , fetchFromGitHub 7 , pytestCheckHook 8 , pythonOlder ··· 28 29 nativeBuildInputs = [ 30 cmake 31 + cython 32 scikit-build 33 ]; 34
+2 -2
pkgs/development/python-modules/libgpuarray/default.nix
··· 4 , buildPythonPackage 5 , fetchFromGitHub 6 , cmake 7 - , cython 8 , numpy 9 , six 10 , nose ··· 67 68 nativeBuildInputs = [ 69 cmake 70 ] ++ lib.optionals cudaSupport [ 71 addOpenGLRunpath 72 ]; 73 74 75 buildInputs = [ 76 - cython 77 nose 78 ]; 79
··· 4 , buildPythonPackage 5 , fetchFromGitHub 6 , cmake 7 + , cython_0 8 , numpy 9 , six 10 , nose ··· 67 68 nativeBuildInputs = [ 69 cmake 70 + cython_0 71 ] ++ lib.optionals cudaSupport [ 72 addOpenGLRunpath 73 ]; 74 75 76 buildInputs = [ 77 nose 78 ]; 79
+2 -7
pkgs/development/python-modules/librouteros/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytest-xdist 5 - , pytestCheckHook 6 , pythonOlder 7 , setuptools 8 }: ··· 27 28 nativeCheckInputs = [ 29 pytest-xdist 30 - pytestCheckHook 31 - ]; 32 - 33 - pytestFlagsArray = [ 34 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 35 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 36 ]; 37 38 disabledTests = [
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytest-xdist 5 + , pytest7CheckHook 6 , pythonOlder 7 , setuptools 8 }: ··· 27 28 nativeCheckInputs = [ 29 pytest-xdist 30 + pytest7CheckHook 31 ]; 32 33 disabledTests = [
+2 -3
pkgs/development/python-modules/lightning-utilities/default.nix
··· 11 12 # tests 13 , pytest-timeout 14 - , pytestCheckHook 15 - , pytest_7 16 }: 17 18 buildPythonPackage rec { ··· 42 43 nativeCheckInputs = [ 44 pytest-timeout 45 - (pytestCheckHook.override { pytest = pytest_7; }) 46 ]; 47 48 disabledTests = [
··· 11 12 # tests 13 , pytest-timeout 14 + , pytest7CheckHook 15 }: 16 17 buildPythonPackage rec { ··· 41 42 nativeCheckInputs = [ 43 pytest-timeout 44 + pytest7CheckHook 45 ]; 46 47 disabledTests = [
+2 -2
pkgs/development/python-modules/limits/default.nix
··· 22 23 buildPythonPackage rec { 24 pname = "limits"; 25 - version = "3.9.0"; 26 pyproject = true; 27 28 disabled = pythonOlder "3.7"; ··· 37 postFetch = '' 38 rm "$out/limits/_version.py" 39 ''; 40 - hash = "sha256-X4nf9ifhJjTNKnQuAxRNK9j/MzfAC58kv+19zMWtKg8="; 41 }; 42 43 postPatch = ''
··· 22 23 buildPythonPackage rec { 24 pname = "limits"; 25 + version = "3.10.1"; 26 pyproject = true; 27 28 disabled = pythonOlder "3.7"; ··· 37 postFetch = '' 38 rm "$out/limits/_version.py" 39 ''; 40 + hash = "sha256-Ax0P9rYTPOrhtOw7FLElSNTGQ3WWCboM3FodTOGZWu8="; 41 }; 42 43 postPatch = ''
+2 -2
pkgs/development/python-modules/line-profiler/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , cython_3 5 , isPyPy 6 , ipython 7 , scikit-build ··· 25 }; 26 27 nativeBuildInputs = [ 28 - cython_3 29 cmake 30 scikit-build 31 ];
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , cython 5 , isPyPy 6 , ipython 7 , scikit-build ··· 25 }; 26 27 nativeBuildInputs = [ 28 + cython 29 cmake 30 scikit-build 31 ];
+2 -2
pkgs/development/python-modules/llfuse/default.nix
··· 3 , buildPythonPackage 4 , pythonOlder 5 , fetchFromGitHub 6 - , cython_3 7 , fuse 8 , pkg-config 9 , pytestCheckHook ··· 27 hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI="; 28 }; 29 30 - nativeBuildInputs = [ cython_3 pkg-config setuptools ]; 31 32 buildInputs = [ fuse ]; 33
··· 3 , buildPythonPackage 4 , pythonOlder 5 , fetchFromGitHub 6 + , cython 7 , fuse 8 , pkg-config 9 , pytestCheckHook ··· 27 hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI="; 28 }; 29 30 + nativeBuildInputs = [ cython pkg-config setuptools ]; 31 32 buildInputs = [ fuse ]; 33
+6
pkgs/development/python-modules/logical-unification/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , toolz 5 , multipledispatch 6 , py ··· 31 pytestCheckHook 32 pytest-html 33 pytest-benchmark # Needed for the `--benchmark-skip` flag 34 ]; 35 36 pytestFlagsArray = [
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , pythonAtLeast 5 , toolz 6 , multipledispatch 7 , py ··· 32 pytestCheckHook 33 pytest-html 34 pytest-benchmark # Needed for the `--benchmark-skip` flag 35 + ]; 36 + 37 + disabledTests = lib.optionals (pythonAtLeast "3.12") [ 38 + # Failed: DID NOT RAISE <class 'RecursionError'> 39 + "test_reify_recursion_limit" 40 ]; 41 42 pytestFlagsArray = [
+2 -2
pkgs/development/python-modules/lupa/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , fetchPypi 5 , pythonOlder 6 , setuptools ··· 19 }; 20 21 build-system = [ 22 - cython_3 23 setuptools 24 ]; 25
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , fetchPypi 5 , pythonOlder 6 , setuptools ··· 19 }; 20 21 build-system = [ 22 + cython 23 setuptools 24 ]; 25
+2 -2
pkgs/development/python-modules/lxml/default.nix
··· 4 , fetchFromGitHub 5 6 # build-system 7 - , cython_3 8 , setuptools 9 10 # native dependencies ··· 30 nativeBuildInputs = [ 31 libxml2.dev 32 libxslt.dev 33 - cython_3 34 setuptools 35 ] ++ lib.optionals stdenv.isDarwin [ 36 xcodebuild
··· 4 , fetchFromGitHub 5 6 # build-system 7 + , cython 8 , setuptools 9 10 # native dependencies ··· 30 nativeBuildInputs = [ 31 libxml2.dev 32 libxslt.dev 33 + cython 34 setuptools 35 ] ++ lib.optionals stdenv.isDarwin [ 36 xcodebuild
+8 -6
pkgs/development/python-modules/lz4/default.nix
··· 6 , pytestCheckHook 7 , python 8 , pythonOlder 9 , setuptools-scm 10 }: 11 12 buildPythonPackage rec { 13 - pname = "python-lz4"; 14 version = "4.3.3"; 15 - format = "setuptools"; 16 17 disabled = pythonOlder "3.5"; 18 19 # get full repository in order to run tests 20 src = fetchFromGitHub { 21 - owner = pname; 22 - repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-ZvGUkb9DoheYY2/sejUhxgh2lS5eoBrFCXR4E0IcFcs="; 25 }; ··· 28 sed -i '/pytest-cov/d' setup.py 29 ''; 30 31 - nativeBuildInputs = [ 32 pkgconfig 33 setuptools-scm 34 ]; 35 36 pythonImportsCheck = [ ··· 46 ]; 47 48 # for lz4.steam 49 - PYLZ4_EXPERIMENTAL = true; 50 51 # prevent local lz4 directory from getting imported as it lacks native extensions 52 preCheck = ''
··· 6 , pytestCheckHook 7 , python 8 , pythonOlder 9 + , setuptools 10 , setuptools-scm 11 }: 12 13 buildPythonPackage rec { 14 + pname = "lz4"; 15 version = "4.3.3"; 16 + pyproject = true; 17 18 disabled = pythonOlder "3.5"; 19 20 # get full repository in order to run tests 21 src = fetchFromGitHub { 22 + owner = "python-lz4"; 23 + repo = "python-lz4"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-ZvGUkb9DoheYY2/sejUhxgh2lS5eoBrFCXR4E0IcFcs="; 26 }; ··· 29 sed -i '/pytest-cov/d' setup.py 30 ''; 31 32 + build-system = [ 33 pkgconfig 34 setuptools-scm 35 + setuptools 36 ]; 37 38 pythonImportsCheck = [ ··· 48 ]; 49 50 # for lz4.steam 51 + env.PYLZ4_EXPERIMENTAL = true; 52 53 # prevent local lz4 directory from getting imported as it lacks native extensions 54 preCheck = ''
+9 -16
pkgs/development/python-modules/marshmallow-enum/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , marshmallow 5 - , pytestCheckHook 6 - , isPy27 7 - , enum34 8 }: 9 10 buildPythonPackage rec { 11 pname = "marshmallow-enum"; 12 version = "1.5.1"; 13 - format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "justanr"; ··· 23 sed -i '/addopts/d' tox.ini 24 ''; 25 26 - propagatedBuildInputs = [ 27 - marshmallow 28 - ] ++ lib.optionals isPy27 [ enum34 ]; 29 - 30 - nativeCheckInputs = [ 31 - pytestCheckHook 32 ]; 33 34 - pytestFlagsArray = [ 35 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 36 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 37 ]; 38 39 - disabledTests = [ 40 - "test_custom_error_in_deserialize_by_name" 41 - "test_custom_error_in_deserialize_by_value" 42 ]; 43 44 meta = with lib; {
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , setuptools 5 , marshmallow 6 + , pytest7CheckHook 7 }: 8 9 buildPythonPackage rec { 10 pname = "marshmallow-enum"; 11 version = "1.5.1"; 12 + pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "justanr"; ··· 22 sed -i '/addopts/d' tox.ini 23 ''; 24 25 + build-system = [ 26 + setuptools 27 ]; 28 29 + dependencies = [ 30 + marshmallow 31 ]; 32 33 + nativeCheckInputs = [ 34 + pytest7CheckHook 35 ]; 36 37 meta = with lib; {
+2 -2
pkgs/development/python-modules/mdtraj/default.nix
··· 5 , fetchpatch 6 , llvmPackages 7 , zlib 8 - , cython 9 , oldest-supported-numpy 10 , setuptools 11 , wheel ··· 42 ]; 43 44 nativeBuildInputs = [ 45 - cython 46 oldest-supported-numpy 47 setuptools 48 wheel
··· 5 , fetchpatch 6 , llvmPackages 7 , zlib 8 + , cython_0 9 , oldest-supported-numpy 10 , setuptools 11 , wheel ··· 42 ]; 43 44 nativeBuildInputs = [ 45 + cython_0 46 oldest-supported-numpy 47 setuptools 48 wheel
+2 -2
pkgs/development/python-modules/memory-allocator/default.nix
··· 1 { lib 2 , fetchPypi 3 , buildPythonPackage 4 - , cython_3 5 }: 6 7 buildPythonPackage rec { ··· 15 hash = "sha256-E4BcKuHAG3SJ+rXo6sk2FmK08sAkEuNlLuzkj/aVMWI="; 16 }; 17 18 - propagatedBuildInputs = [ cython_3 ]; 19 20 pythonImportsCheck = [ "memory_allocator" ]; 21
··· 1 { lib 2 , fetchPypi 3 , buildPythonPackage 4 + , cython 5 }: 6 7 buildPythonPackage rec { ··· 15 hash = "sha256-E4BcKuHAG3SJ+rXo6sk2FmK08sAkEuNlLuzkj/aVMWI="; 16 }; 17 18 + propagatedBuildInputs = [ cython ]; 19 20 pythonImportsCheck = [ "memory_allocator" ]; 21
+32 -6
pkgs/development/python-modules/mido/default.nix
··· 3 , buildPythonPackage 4 , fetchPypi 5 , substituteAll 6 , portmidi 7 , python-rtmidi 8 , pytestCheckHook 9 , pythonOlder 10 - , setuptools 11 - , setuptools-scm 12 }: 13 14 buildPythonPackage rec { ··· 20 21 src = fetchPypi { 22 inherit pname version; 23 - sha256 = "sha256-Ouootu1zD3N9WxLaNXjevp3FAFj6Nw/pzt7ZGJtnw0g="; 24 }; 25 26 patches = [ ··· 30 }) 31 ]; 32 33 - nativeBuildInputs = [ 34 setuptools 35 setuptools-scm 36 ]; 37 38 - propagatedBuildInputs = [ 39 - python-rtmidi 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook
··· 3 , buildPythonPackage 4 , fetchPypi 5 , substituteAll 6 + 7 + # build-system 8 + , setuptools 9 + , setuptools-scm 10 + , pythonRelaxDepsHook 11 + 12 + # dependencies 13 + , packaging 14 + 15 + # native dependencies 16 , portmidi 17 + 18 + # optional-dependencies 19 + , pygame 20 , python-rtmidi 21 + , rtmidi-python 22 + 23 + # tests 24 , pytestCheckHook 25 , pythonOlder 26 + 27 }: 28 29 buildPythonPackage rec { ··· 35 36 src = fetchPypi { 37 inherit pname version; 38 + hash = "sha256-Ouootu1zD3N9WxLaNXjevp3FAFj6Nw/pzt7ZGJtnw0g="; 39 }; 40 41 patches = [ ··· 45 }) 46 ]; 47 48 + build-system = [ 49 setuptools 50 setuptools-scm 51 + pythonRelaxDepsHook 52 ]; 53 54 + pythonRelaxDeps = [ 55 + "packaging" 56 + ]; 57 + 58 + dependencies = [ 59 + packaging 60 ]; 61 + 62 + optional-dependencies = { 63 + ports-pygame = [ pygame ]; 64 + ports-rtmidi = [ python-rtmidi ]; 65 + ports-rtmidi-python = [ rtmidi-python ]; 66 + }; 67 68 nativeCheckInputs = [ 69 pytestCheckHook
+5 -1
pkgs/development/python-modules/mlflow/default.nix
··· 56 setuptools 57 ]; 58 pythonRemoveDeps = [ "shap" ]; 59 - pythonRelaxDeps = [ "pytz" "pyarrow" ]; 60 61 propagatedBuildInputs = [ 62 alembic
··· 56 setuptools 57 ]; 58 pythonRemoveDeps = [ "shap" ]; 59 + pythonRelaxDeps = [ 60 + "packaging" 61 + "pytz" 62 + "pyarrow" 63 + ]; 64 65 propagatedBuildInputs = [ 66 alembic
+2 -2
pkgs/development/python-modules/nampa/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , future 5 - , pytestCheckHook 6 }: 7 8 buildPythonPackage rec { ··· 22 ]; 23 24 nativeCheckInputs = [ 25 - pytestCheckHook 26 ]; 27 28 postPatch = ''
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , future 5 + , pytest7CheckHook 6 }: 7 8 buildPythonPackage rec { ··· 22 ]; 23 24 nativeCheckInputs = [ 25 + pytest7CheckHook 26 ]; 27 28 postPatch = ''
+2 -7
pkgs/development/python-modules/ndindex/default.nix
··· 3 , fetchFromGitHub 4 5 # build-system 6 - , cython_3 7 8 # optional 9 , numpy ··· 27 }; 28 29 nativeBuildInputs = [ 30 - cython_3 31 ]; 32 33 postPatch = '' ··· 48 pytest-cov # uses cov markers 49 pytestCheckHook 50 ] ++ passthru.optional-dependencies.arrays; 51 - 52 - pytestFlagsArray = [ 53 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 54 - "--deselect=ndindex/tests/test_ndindex.py::test_ndindex_invalid" 55 - ]; 56 57 meta = with lib; { 58 description = "";
··· 3 , fetchFromGitHub 4 5 # build-system 6 + , cython 7 8 # optional 9 , numpy ··· 27 }; 28 29 nativeBuildInputs = [ 30 + cython 31 ]; 32 33 postPatch = '' ··· 48 pytest-cov # uses cov markers 49 pytestCheckHook 50 ] ++ passthru.optional-dependencies.arrays; 51 52 meta = with lib; { 53 description = "";
+8 -2
pkgs/development/python-modules/nibabel/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 , hatchling 6 , hatch-vcs ··· 15 , pytest-doctestplus 16 , pytest-httpserver 17 , pytest-xdist 18 - , pytestCheckHook 19 }: 20 21 buildPythonPackage rec { ··· 70 pytest-doctestplus 71 pytest-httpserver 72 pytest-xdist 73 - pytestCheckHook 74 ] ++ passthru.optional-dependencies.all; 75 76 preCheck = '' 77 export PATH=$out/bin:$PATH 78 ''; 79 80 meta = with lib; { 81 homepage = "https://nipy.org/nibabel";
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pythonAtLeast 5 , pythonOlder 6 , hatchling 7 , hatch-vcs ··· 16 , pytest-doctestplus 17 , pytest-httpserver 18 , pytest-xdist 19 + , pytest7CheckHook 20 }: 21 22 buildPythonPackage rec { ··· 71 pytest-doctestplus 72 pytest-httpserver 73 pytest-xdist 74 + pytest7CheckHook 75 ] ++ passthru.optional-dependencies.all; 76 77 preCheck = '' 78 export PATH=$out/bin:$PATH 79 ''; 80 + 81 + disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ 82 + # uses distutils 83 + "nisext/tests/test_sexts.py" 84 + ]; 85 86 meta = with lib; { 87 homepage = "https://nipy.org/nibabel";
+2 -2
pkgs/development/python-modules/nipy/default.nix
··· 3 , fetchPypi 4 5 # build-system 6 - , cython_3 7 , meson-python 8 , ninja 9 , setuptools ··· 37 ''; 38 39 build-system = [ 40 - cython_3 41 meson-python 42 setuptools 43 ninja
··· 3 , fetchPypi 4 5 # build-system 6 + , cython 7 , meson-python 8 , ninja 9 , setuptools ··· 37 ''; 38 39 build-system = [ 40 + cython 41 meson-python 42 setuptools 43 ninja
+2 -6
pkgs/development/python-modules/nocasedict/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytestCheckHook 5 , six 6 }: 7 ··· 20 ]; 21 22 nativeCheckInputs = [ 23 - pytestCheckHook 24 - ]; 25 - 26 - pytestFlagsArray = [ 27 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 28 ]; 29 30 pythonImportsCheck = [
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pytest7CheckHook 5 , six 6 }: 7 ··· 20 ]; 21 22 nativeCheckInputs = [ 23 + pytest7CheckHook 24 ]; 25 26 pythonImportsCheck = [
+2 -6
pkgs/development/python-modules/nocaselist/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytestCheckHook 5 , pythonOlder 6 , six 7 }: ··· 23 ]; 24 25 nativeCheckInputs = [ 26 - pytestCheckHook 27 - ]; 28 - 29 - pytestFlagsArray = [ 30 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 31 ]; 32 33 pythonImportsCheck = [
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pytest7CheckHook 5 , pythonOlder 6 , six 7 }: ··· 23 ]; 24 25 nativeCheckInputs = [ 26 + pytest7CheckHook 27 ]; 28 29 pythonImportsCheck = [
+1
pkgs/development/python-modules/notus-scanner/default.nix
··· 27 }; 28 29 pythonRelaxDeps = [ 30 "python-gnupg" 31 ]; 32
··· 27 }; 28 29 pythonRelaxDeps = [ 30 + "packaging" 31 "python-gnupg" 32 ]; 33
+2 -2
pkgs/development/python-modules/numpy/default.nix
··· 8 , writeTextFile 9 10 # build-system 11 - , cython_3 12 , gfortran 13 , meson-python 14 , mesonEmulatorHook ··· 91 ''; 92 93 nativeBuildInputs = [ 94 - cython_3 95 gfortran 96 meson-python 97 pkg-config
··· 8 , writeTextFile 9 10 # build-system 11 + , cython 12 , gfortran 13 , meson-python 14 , mesonEmulatorHook ··· 91 ''; 92 93 nativeBuildInputs = [ 94 + cython 95 gfortran 96 meson-python 97 pkg-config
+2 -3
pkgs/development/python-modules/openapi-core/default.nix
··· 19 , parse 20 , poetry-core 21 , pytest-aiohttp 22 - , pytestCheckHook 23 - , pytest_7 24 , pythonOlder 25 , responses 26 , requests ··· 94 nativeCheckInputs = [ 95 httpx 96 pytest-aiohttp 97 - (pytestCheckHook.override { pytest = pytest_7; }) 98 responses 99 webob 100 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
··· 19 , parse 20 , poetry-core 21 , pytest-aiohttp 22 + , pytest7CheckHook 23 , pythonOlder 24 , responses 25 , requests ··· 93 nativeCheckInputs = [ 94 httpx 95 pytest-aiohttp 96 + pytest7CheckHook 97 responses 98 webob 99 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
+2 -2
pkgs/development/python-modules/openpyxl/default.nix
··· 5 , lxml 6 , pandas 7 , pillow 8 - , pytestCheckHook 9 , pythonAtLeast 10 , pythonOlder 11 , setuptools ··· 38 lxml 39 pandas 40 pillow 41 - pytestCheckHook 42 ]; 43 44 pytestFlagsArray = [
··· 5 , lxml 6 , pandas 7 , pillow 8 + , pytest7CheckHook 9 , pythonAtLeast 10 , pythonOlder 11 , setuptools ··· 38 lxml 39 pandas 40 pillow 41 + pytest7CheckHook 42 ]; 43 44 pytestFlagsArray = [
+19 -9
pkgs/development/python-modules/openstep-plist/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , setuptools-scm 5 , pytestCheckHook 6 - , cython 7 - , pythonImportsCheckHook 8 }: 9 10 buildPythonPackage rec { 11 pname = "openstep-plist"; 12 - version = "0.3.0.post1"; 13 - format = "setuptools"; 14 15 src = fetchPypi { 16 pname = "openstep_plist"; 17 inherit version; 18 - hash = "sha256-GK/z1e3tnr++3+ukRKPASDJGl7+KObsENhwN1Tv+qws="; 19 - extension = "zip"; 20 }; 21 22 - nativeBuildInputs = [ setuptools-scm cython ]; 23 - nativeCheckInputs = [ pytestCheckHook ]; 24 - pythonImportsCheck = [ "openstep_plist" ]; 25 26 meta = { 27 description = "Parser for the 'old style' OpenStep property list format also known as ASCII plist"; 28 homepage = "https://github.com/fonttools/openstep-plist"; 29 license = lib.licenses.mit;
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , cython 5 + , setuptools 6 , setuptools-scm 7 , pytestCheckHook 8 }: 9 10 buildPythonPackage rec { 11 pname = "openstep-plist"; 12 + version = "0.3.1"; 13 + pyproject = true; 14 15 src = fetchPypi { 16 pname = "openstep_plist"; 17 inherit version; 18 + hash = "sha256-Au6taO+57Ost4slTlwc86A/ImFXZerZRab2S/ENo5PI="; 19 }; 20 21 + build-system = [ 22 + cython 23 + setuptools 24 + setuptools-scm 25 + ]; 26 + 27 + nativeCheckInputs = [ 28 + pytestCheckHook 29 + ]; 30 + 31 + pythonImportsCheck = [ 32 + "openstep_plist" 33 + ]; 34 35 meta = { 36 + changelog = "https://github.com/fonttools/openstep-plist/releases/tag/v${version}"; 37 description = "Parser for the 'old style' OpenStep property list format also known as ASCII plist"; 38 homepage = "https://github.com/fonttools/openstep-plist"; 39 license = lib.licenses.mit;
+2 -2
pkgs/development/python-modules/oracledb/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , cryptography 4 - , cython_3 5 , fetchPypi 6 , pythonOlder 7 , setuptools ··· 21 }; 22 23 build-system = [ 24 - cython_3 25 setuptools 26 wheel 27 ];
··· 1 { lib 2 , buildPythonPackage 3 , cryptography 4 + , cython 5 , fetchPypi 6 , pythonOlder 7 , setuptools ··· 21 }; 22 23 build-system = [ 24 + cython 25 setuptools 26 wheel 27 ];
+20 -7
pkgs/development/python-modules/palace/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromSourcehut, pythonOlder 2 - , cmake, cython, alure2, typing-extensions 3 }: 4 5 buildPythonPackage rec { 6 pname = "palace"; 7 version = "0.2.5"; 8 - format = "setuptools"; 9 disabled = pythonOlder "3.6"; 10 11 src = fetchFromSourcehut { ··· 21 --replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE 22 ''; 23 24 dontUseCmakeConfigure = true; 25 26 - nativeBuildInputs = [ cmake ]; 27 - buildInputs = [ cython ]; 28 - propagatedBuildInputs = [ alure2 ] ++ lib.optionals (pythonOlder "3.8") [ 29 - typing-extensions 30 ]; 31 32 doCheck = false; # FIXME: tests need an audio device 33 pythonImportsCheck = [ "palace" ]; 34 35 meta = with lib; {
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromSourcehut 4 + , pythonOlder 5 + , cmake 6 + , cython_0 7 + , setuptools 8 + , alure2 9 + , typing-extensions 10 }: 11 12 buildPythonPackage rec { 13 pname = "palace"; 14 version = "0.2.5"; 15 + pyproject = true; 16 + 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromSourcehut { ··· 29 --replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE 30 ''; 31 32 + build-system = [ 33 + cmake 34 + cython_0 35 + setuptools 36 + ]; 37 + 38 dontUseCmakeConfigure = true; 39 40 + propagatedBuildInputs = [ 41 + alure2 42 ]; 43 44 doCheck = false; # FIXME: tests need an audio device 45 + 46 pythonImportsCheck = [ "palace" ]; 47 48 meta = with lib; {
+2 -2
pkgs/development/python-modules/pandas/default.nix
··· 6 , pythonOlder 7 8 # build-system 9 - , cython_3 10 , meson-python 11 , meson 12 , oldest-supported-numpy ··· 84 ''; 85 86 nativeBuildInputs = [ 87 - cython_3 88 meson-python 89 meson 90 numpy
··· 6 , pythonOlder 7 8 # build-system 9 + , cython 10 , meson-python 11 , meson 12 , oldest-supported-numpy ··· 84 ''; 85 86 nativeBuildInputs = [ 87 + cython 88 meson-python 89 meson 90 numpy
+4 -5
pkgs/development/python-modules/papermill/default.nix
··· 91 "papermill" 92 ]; 93 94 - pytestFlagsArray = [ 95 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 96 - ]; 97 - 98 - disabledTests = lib.optionals stdenv.isDarwin [ 99 # might fail due to the sandbox 100 "test_end2end_autosave_slow_notebook" 101 ];
··· 91 "papermill" 92 ]; 93 94 + disabledTests = [ 95 + # pytest 8 compat 96 + "test_read_with_valid_file_extension" 97 + ] ++ lib.optionals stdenv.isDarwin [ 98 # might fail due to the sandbox 99 "test_end2end_autosave_slow_notebook" 100 ];
+5 -4
pkgs/development/python-modules/paramiko/default.nix
··· 31 url = "https://github.com/paramiko/paramiko/commit/18e38b99f515056071fb27b9c1a4f472005c324a.patch"; 32 hash = "sha256-bPDghPeLo3NiOg+JwD5CJRRLv2VEqmSx1rOF2Tf8ZDA="; 33 }) 34 ]; 35 36 propagatedBuildInputs = [ ··· 51 mock 52 pytestCheckHook 53 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 54 - 55 - pytestFlagsArray = [ 56 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 57 - ]; 58 59 disabledTestPaths = [ 60 # disable tests that require pytest-relaxed, which is broken
··· 31 url = "https://github.com/paramiko/paramiko/commit/18e38b99f515056071fb27b9c1a4f472005c324a.patch"; 32 hash = "sha256-bPDghPeLo3NiOg+JwD5CJRRLv2VEqmSx1rOF2Tf8ZDA="; 33 }) 34 + (fetchpatch { 35 + name = "paramiko-pytest8-compat.patch"; 36 + url = "https://github.com/paramiko/paramiko/commit/d71046151d9904df467ff72709585cde39cdd4ca.patch"; 37 + hash = "sha256-4CTIZ9BmzRdh+HOwxSzfM9wkUGJOnndctK5swqqsIvU="; 38 + }) 39 ]; 40 41 propagatedBuildInputs = [ ··· 56 mock 57 pytestCheckHook 58 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 59 60 disabledTestPaths = [ 61 # disable tests that require pytest-relaxed, which is broken
+4
pkgs/development/python-modules/pathtools/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 }: 5 6 buildPythonPackage rec { 7 pname = "pathtools"; 8 version = "0.1.2"; 9 format = "setuptools"; 10 11 src = fetchPypi { 12 inherit pname version;
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pythonAtLeast 5 }: 6 7 buildPythonPackage rec { 8 pname = "pathtools"; 9 version = "0.1.2"; 10 format = "setuptools"; 11 + 12 + # imp and distuils usage, last commit in 2016 13 + disabled = pythonAtLeast "3.12"; 14 15 src = fetchPypi { 16 inherit pname version;
+6
pkgs/development/python-modules/pint/default.nix
··· 50 uncertainties 51 ]; 52 53 preCheck = '' 54 export HOME=$(mktemp -d) 55 ''; ··· 57 disabledTests = [ 58 # https://github.com/hgrecco/pint/issues/1898 59 "test_load_definitions_stage_2" 60 ]; 61 62 meta = with lib; {
··· 50 uncertainties 51 ]; 52 53 + pytestFlagsArray = [ 54 + "--benchmark-disable" 55 + ]; 56 + 57 preCheck = '' 58 export HOME=$(mktemp -d) 59 ''; ··· 61 disabledTests = [ 62 # https://github.com/hgrecco/pint/issues/1898 63 "test_load_definitions_stage_2" 64 + # pytest8 deprecation 65 + "test_nonnumeric_magnitudes" 66 ]; 67 68 meta = with lib; {
+2 -6
pkgs/development/python-modules/pmdarima/default.nix
··· 12 , urllib3 13 , pythonOlder 14 , python 15 - , pytestCheckHook 16 }: 17 18 buildPythonPackage rec { ··· 49 50 nativeCheckInputs = [ 51 matplotlib 52 - pytestCheckHook 53 - ]; 54 - 55 - pytestFlagsArray = [ 56 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 57 ]; 58 59 disabledTests= [
··· 12 , urllib3 13 , pythonOlder 14 , python 15 + , pytest7CheckHook 16 }: 17 18 buildPythonPackage rec { ··· 49 50 nativeCheckInputs = [ 51 matplotlib 52 + pytest7CheckHook 53 ]; 54 55 disabledTests= [
+2 -3
pkgs/development/python-modules/pook/default.nix
··· 7 , jsonschema 8 , pytest-asyncio 9 , pytest-httpbin 10 - , pytestCheckHook 11 - , pytest_7 12 , pythonOlder 13 , requests 14 , xmltodict ··· 43 nativeCheckInputs = [ 44 pytest-asyncio 45 pytest-httpbin 46 - (pytestCheckHook.override { pytest = pytest_7; }) 47 ]; 48 49 pythonImportsCheck = [
··· 7 , jsonschema 8 , pytest-asyncio 9 , pytest-httpbin 10 + , pytest7CheckHook 11 , pythonOlder 12 , requests 13 , xmltodict ··· 42 nativeCheckInputs = [ 43 pytest-asyncio 44 pytest-httpbin 45 + pytest7CheckHook 46 ]; 47 48 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/pplpy/default.nix
··· 5 , mpfr 6 , libmpc 7 , ppl 8 - , cython_3 9 , cysignals 10 , gmpy2 11 , sphinx ··· 33 ]; 34 35 propagatedBuildInputs = [ 36 - cython_3 37 cysignals 38 gmpy2 39 ];
··· 5 , mpfr 6 , libmpc 7 , ppl 8 + , cython 9 , cysignals 10 , gmpy2 11 , sphinx ··· 33 ]; 34 35 propagatedBuildInputs = [ 36 + cython 37 cysignals 38 gmpy2 39 ];
+2 -2
pkgs/development/python-modules/primecountpy/default.nix
··· 2 , fetchPypi 3 , buildPythonPackage 4 , primecount 5 - , cython_3 6 , cysignals 7 }: 8 ··· 18 19 buildInputs = [ primecount ]; 20 21 - propagatedBuildInputs = [ cython_3 cysignals ]; 22 23 # depends on pytest-cython for "pytest --doctest-cython" 24 doCheck = false;
··· 2 , fetchPypi 3 , buildPythonPackage 4 , primecount 5 + , cython 6 , cysignals 7 }: 8 ··· 18 19 buildInputs = [ primecount ]; 20 21 + propagatedBuildInputs = [ cython cysignals ]; 22 23 # depends on pytest-cython for "pytest --doctest-cython" 24 doCheck = false;
+3
pkgs/development/python-modules/protobuf/3.nix
··· 45 # 46 postPatch = '' 47 sed -i "/extra_compile_args.append('-std=c++14')/d" setup.py 48 ''; 49 50 nativeBuildInputs = lib.optional isPyPy tzdata;
··· 45 # 46 postPatch = '' 47 sed -i "/extra_compile_args.append('-std=c++14')/d" setup.py 48 + 49 + substituteInPlace google/protobuf/internal/json_format_test.py \ 50 + --replace-fail assertRaisesRegexp assertRaisesRegex 51 ''; 52 53 nativeBuildInputs = lib.optional isPyPy tzdata;
+5
pkgs/development/python-modules/protobuf/default.nix
··· 60 # 61 postPatch = '' 62 sed -i "/extra_compile_args.append('-std=c++14')/d" setup.py 63 ''; 64 65 nativeBuildInputs = lib.optional isPyPy tzdata;
··· 60 # 61 postPatch = '' 62 sed -i "/extra_compile_args.append('-std=c++14')/d" setup.py 63 + 64 + # The former function has been renamed into the latter in Python 3.12. 65 + # Does not apply to all protobuf versions, hence --replace-warn. 66 + substituteInPlace google/protobuf/internal/json_format_test.py \ 67 + --replace-warn assertRaisesRegexp assertRaisesRegex 68 ''; 69 70 nativeBuildInputs = lib.optional isPyPy tzdata;
+4
pkgs/development/python-modules/psd-tools/default.nix
··· 28 hash = "sha256-HUFJ2FP9WGcG9pkukS2LHIgPYFRAXAneiVK6VfYQ+zU="; 29 }; 30 31 nativeBuildInputs = [ 32 cython 33 ];
··· 28 hash = "sha256-HUFJ2FP9WGcG9pkukS2LHIgPYFRAXAneiVK6VfYQ+zU="; 29 }; 30 31 + postPatch = '' 32 + sed -i "/addopts =/d" pyproject.toml 33 + ''; 34 + 35 nativeBuildInputs = [ 36 cython 37 ];
+2 -2
pkgs/development/python-modules/psycopg/default.nix
··· 15 , typing-extensions 16 17 # psycopg-c 18 - , cython_3 19 , tomli 20 21 # docs ··· 72 ''; 73 74 nativeBuildInputs = [ 75 - cython_3 76 postgresql 77 setuptools 78 tomli
··· 15 , typing-extensions 16 17 # psycopg-c 18 + , cython 19 , tomli 20 21 # docs ··· 72 ''; 73 74 nativeBuildInputs = [ 75 + cython 76 postgresql 77 setuptools 78 tomli
+2 -2
pkgs/development/python-modules/py-libzfs/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchFromGitHub 5 - , cython 6 , zfs 7 }: 8 ··· 18 hash = "sha256-vBLbjP1gQEQNsTLc2W6uRzCFHQXZp+jGiwE0Pe8VTuw="; 19 }; 20 21 - nativeBuildInputs = [ cython ]; 22 buildInputs = [ zfs ]; 23 24 # Passing CFLAGS in configureFlags does not work, see https://github.com/truenas/py-libzfs/issues/107
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchFromGitHub 5 + , cython_0 6 , zfs 7 }: 8 ··· 18 hash = "sha256-vBLbjP1gQEQNsTLc2W6uRzCFHQXZp+jGiwE0Pe8VTuw="; 19 }; 20 21 + nativeBuildInputs = [ cython_0 ]; 22 buildInputs = [ zfs ]; 23 24 # Passing CFLAGS in configureFlags does not work, see https://github.com/truenas/py-libzfs/issues/107
+2 -2
pkgs/development/python-modules/pyarrow/default.nix
··· 8 , cffi 9 , cloudpickle 10 , cmake 11 - , cython 12 , fsspec 13 , hypothesis 14 , numpy ··· 45 46 nativeBuildInputs = [ 47 cmake 48 - cython 49 pkg-config 50 setuptools 51 setuptools-scm
··· 8 , cffi 9 , cloudpickle 10 , cmake 11 + , cython_0 12 , fsspec 13 , hypothesis 14 , numpy ··· 45 46 nativeBuildInputs = [ 47 cmake 48 + cython_0 49 pkg-config 50 setuptools 51 setuptools-scm
+4 -5
pkgs/development/python-modules/pydantic/1.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython 4 , email-validator 5 , fetchFromGitHub 6 , pytest-mock 7 - , pytestCheckHook 8 - , pytest_7 9 , python-dotenv 10 , pythonAtLeast 11 , pythonOlder ··· 30 31 nativeBuildInputs = [ 32 setuptools 33 - cython 34 ]; 35 36 buildInputs = lib.optionals (pythonOlder "3.9") [ ··· 52 53 nativeCheckInputs = [ 54 pytest-mock 55 - (pytestCheckHook.override { pytest = pytest_7; }) 56 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); 57 58 pytestFlagsArray = [
··· 1 { lib 2 , buildPythonPackage 3 + , cython_0 4 , email-validator 5 , fetchFromGitHub 6 , pytest-mock 7 + , pytest7CheckHook 8 , python-dotenv 9 , pythonAtLeast 10 , pythonOlder ··· 29 30 nativeBuildInputs = [ 31 setuptools 32 + cython_0 33 ]; 34 35 buildInputs = lib.optionals (pythonOlder "3.9") [ ··· 51 52 nativeCheckInputs = [ 53 pytest-mock 54 + pytest7CheckHook 55 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); 56 57 pytestFlagsArray = [
+2 -3
pkgs/development/python-modules/pydash/default.nix
··· 1 { lib 2 - , stdenv 3 , buildPythonPackage 4 , fetchFromGitHub 5 , invoke 6 , mock 7 - , pytestCheckHook 8 , pythonOlder 9 , setuptools 10 , sphinx-rtd-theme ··· 41 nativeCheckInputs = [ 42 invoke 43 mock 44 - pytestCheckHook 45 sphinx-rtd-theme 46 ]; 47
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , invoke 5 , mock 6 + , pytest7CheckHook 7 , pythonOlder 8 , setuptools 9 , sphinx-rtd-theme ··· 40 nativeCheckInputs = [ 41 invoke 42 mock 43 + pytest7CheckHook 44 sphinx-rtd-theme 45 ]; 46
+2 -2
pkgs/development/python-modules/pyfftw/default.nix
··· 1 { lib, buildPythonPackage, fetchPypi 2 - , fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }: 3 4 buildPythonPackage rec { 5 version = "0.13.1"; ··· 17 18 buildInputs = [ fftw fftwFloat fftwLongDouble]; 19 20 - propagatedBuildInputs = [ numpy scipy cython dask ]; 21 22 # Tests cannot import pyfftw. pyfftw works fine though. 23 doCheck = false;
··· 1 { lib, buildPythonPackage, fetchPypi 2 + , fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython_0, dask }: 3 4 buildPythonPackage rec { 5 version = "0.13.1"; ··· 17 18 buildInputs = [ fftw fftwFloat fftwLongDouble]; 19 20 + propagatedBuildInputs = [ numpy scipy cython_0 dask ]; 21 22 # Tests cannot import pyfftw. pyfftw works fine though. 23 doCheck = false;
+2 -2
pkgs/development/python-modules/pyfuse3/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 - , cython_3 6 , pkg-config 7 , setuptools 8 , fuse3 ··· 34 ''; 35 36 nativeBuildInputs = [ 37 - cython_3 38 pkg-config 39 setuptools 40 ];
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 + , cython 6 , pkg-config 7 , setuptools 8 , fuse3 ··· 34 ''; 35 36 nativeBuildInputs = [ 37 + cython 38 pkg-config 39 setuptools 40 ];
+2 -2
pkgs/development/python-modules/pygame-sdl2/default.nix
··· 1 { lib, buildPythonPackage, fetchurl, isPy27, renpy 2 - , cython, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }: 3 4 buildPythonPackage rec { 5 pname = "pygame-sdl2"; ··· 24 ''; 25 26 nativeBuildInputs = [ 27 - SDL2.dev cython 28 ]; 29 30 buildInputs = [
··· 1 { lib, buildPythonPackage, fetchurl, isPy27, renpy 2 + , cython_0, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }: 3 4 buildPythonPackage rec { 5 pname = "pygame-sdl2"; ··· 24 ''; 25 26 nativeBuildInputs = [ 27 + SDL2.dev cython_0 28 ]; 29 30 buildInputs = [
+2 -2
pkgs/development/python-modules/pygame/default.nix
··· 6 , pythonOlder 7 8 # build-system 9 - , cython_3 10 , setuptools 11 , pkg-config 12 ··· 70 ''; 71 72 nativeBuildInputs = [ 73 - cython_3 74 pkg-config 75 SDL2 76 setuptools
··· 6 , pythonOlder 7 8 # build-system 9 + , cython 10 , setuptools 11 , pkg-config 12 ··· 70 ''; 71 72 nativeBuildInputs = [ 73 + cython 74 pkg-config 75 SDL2 76 setuptools
+2 -2
pkgs/development/python-modules/pygeos/default.nix
··· 4 , python 5 , geos_3_11 6 , pytestCheckHook 7 - , cython 8 , numpy 9 }: 10 ··· 20 21 nativeBuildInputs = [ 22 geos_3_11 # for geos-config 23 - cython 24 ]; 25 26 propagatedBuildInputs = [
··· 4 , python 5 , geos_3_11 6 , pytestCheckHook 7 + , cython_0 8 , numpy 9 }: 10 ··· 20 21 nativeBuildInputs = [ 22 geos_3_11 # for geos-config 23 + cython_0 24 ]; 25 26 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/pykdtree/default.nix
··· 3 , fetchPypi 4 5 # build-system 6 - , cython_3 7 , numpy 8 , setuptools 9 ··· 25 }; 26 27 nativeBuildInputs = [ 28 - cython_3 29 numpy 30 setuptools 31 ];
··· 3 , fetchPypi 4 5 # build-system 6 + , cython 7 , numpy 8 , setuptools 9 ··· 25 }; 26 27 nativeBuildInputs = [ 28 + cython 29 numpy 30 setuptools 31 ];
+2 -2
pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix
··· 3 , fetchFromGitHub 4 , pythonOlder 5 , pytestCheckHook 6 - , cython_3 7 , poetry-core 8 , setuptools 9 , numpy ··· 25 }; 26 27 nativeBuildInputs = [ 28 - cython_3 29 poetry-core 30 setuptools 31 ];
··· 3 , fetchFromGitHub 4 , pythonOlder 5 , pytestCheckHook 6 + , cython 7 , poetry-core 8 , setuptools 9 , numpy ··· 25 }; 26 27 nativeBuildInputs = [ 28 + cython 29 poetry-core 30 setuptools 31 ];
+4 -2
pkgs/development/python-modules/pyliblo/default.nix
··· 4 , isPyPy 5 , pythonAtLeast 6 , liblo 7 - , cython 8 }: 9 10 buildPythonPackage rec { ··· 25 }) 26 ]; 27 28 - buildInputs = [ liblo cython ]; 29 30 meta = with lib; { 31 homepage = "https://das.nasophon.de/pyliblo/";
··· 4 , isPyPy 5 , pythonAtLeast 6 , liblo 7 + , cython_0 8 }: 9 10 buildPythonPackage rec { ··· 25 }) 26 ]; 27 28 + build-system = [ cython_0 ]; 29 + 30 + buildInputs = [ liblo ]; 31 32 meta = with lib; { 33 homepage = "https://das.nasophon.de/pyliblo/";
+2 -2
pkgs/development/python-modules/pylint/default.nix
··· 17 , py 18 , pytest-timeout 19 , pytest-xdist 20 - , pytestCheckHook 21 }: 22 23 buildPythonPackage rec { ··· 57 py 58 pytest-timeout 59 pytest-xdist 60 - pytestCheckHook 61 requests 62 typing-extensions 63 ];
··· 17 , py 18 , pytest-timeout 19 , pytest-xdist 20 + , pytest7CheckHook 21 }: 22 23 buildPythonPackage rec { ··· 57 py 58 pytest-timeout 59 pytest-xdist 60 + pytest7CheckHook 61 requests 62 typing-extensions 63 ];
+13 -5
pkgs/development/python-modules/pymeeus/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pytest }: 2 3 buildPythonPackage rec { 4 pname = "pymeeus"; 5 version = "0.5.12"; 6 7 src = fetchPypi { 8 pname = "PyMeeus"; ··· 10 hash = "sha256-VI9xhr2LlsvAac9kmo6ON33OSax0SGcJhJ/mOpnK1oQ="; 11 }; 12 13 - nativeCheckInputs = [ pytest ]; 14 15 - checkPhase = '' 16 - pytest . 17 - ''; 18 19 meta = with lib; { 20 homepage = "https://github.com/architest/pymeeus";
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools 5 + , pytest7CheckHook 6 + }: 7 8 buildPythonPackage rec { 9 pname = "pymeeus"; 10 version = "0.5.12"; 11 + pyproject = true; 12 13 src = fetchPypi { 14 pname = "PyMeeus"; ··· 16 hash = "sha256-VI9xhr2LlsvAac9kmo6ON33OSax0SGcJhJ/mOpnK1oQ="; 17 }; 18 19 + build-system = [ 20 + setuptools 21 + ]; 22 23 + nativeCheckInputs = [ 24 + pytest7CheckHook 25 + ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/architest/pymeeus";
+2 -2
pkgs/development/python-modules/pynetdicom/default.nix
··· 5 , fetchpatch 6 , pydicom 7 , pyfakefs 8 - , pytestCheckHook 9 , sqlalchemy 10 , pythonOlder 11 }: ··· 38 39 nativeCheckInputs = [ 40 pyfakefs 41 - pytestCheckHook 42 sqlalchemy 43 ]; 44
··· 5 , fetchpatch 6 , pydicom 7 , pyfakefs 8 + , pytest7CheckHook 9 , sqlalchemy 10 , pythonOlder 11 }: ··· 38 39 nativeCheckInputs = [ 40 pyfakefs 41 + pytest7CheckHook 42 sqlalchemy 43 ]; 44
+2 -2
pkgs/development/python-modules/pyopengl-accelerate/default.nix
··· 2 , buildPythonPackage 3 , pythonAtLeast 4 , fetchPypi 5 - , cython_3 6 , numpy 7 , setuptools 8 , wheel ··· 20 }; 21 22 nativeBuildInputs = [ 23 - cython_3 24 numpy 25 setuptools 26 wheel
··· 2 , buildPythonPackage 3 , pythonAtLeast 4 , fetchPypi 5 + , cython 6 , numpy 7 , setuptools 8 , wheel ··· 20 }; 21 22 nativeBuildInputs = [ 23 + cython 24 numpy 25 setuptools 26 wheel
+2 -2
pkgs/development/python-modules/pyreadstat/default.nix
··· 1 { lib 2 , stdenv 3 , buildPythonPackage 4 - , cython_3 5 , fetchFromGitHub 6 , libiconv 7 , pandas ··· 26 }; 27 28 nativeBuildInputs = [ 29 - cython_3 30 ]; 31 32 buildInputs = [
··· 1 { lib 2 , stdenv 3 , buildPythonPackage 4 + , cython 5 , fetchFromGitHub 6 , libiconv 7 , pandas ··· 26 }; 27 28 nativeBuildInputs = [ 29 + cython 30 ]; 31 32 buildInputs = [
+2 -2
pkgs/development/python-modules/pyrevolve/default.nix
··· 4 , contexttimer 5 , setuptools 6 , versioneer 7 - , cython 8 , numpy 9 , pytestCheckHook 10 , pythonOlder ··· 30 ''; 31 32 nativeBuildInputs = [ 33 - cython 34 setuptools 35 versioneer 36 ];
··· 4 , contexttimer 5 , setuptools 6 , versioneer 7 + , cython_0 8 , numpy 9 , pytestCheckHook 10 , pythonOlder ··· 30 ''; 31 32 nativeBuildInputs = [ 33 + cython_0 34 setuptools 35 versioneer 36 ];
+2 -2
pkgs/development/python-modules/pysam/default.nix
··· 4 , bzip2 5 , bcftools 6 , curl 7 - , cython_3 8 , htslib 9 , libdeflate 10 , xz ··· 30 }; 31 32 nativeBuildInputs = [ 33 - cython_3 34 samtools 35 setuptools 36 ];
··· 4 , bzip2 5 , bcftools 6 , curl 7 + , cython 8 , htslib 9 , libdeflate 10 , xz ··· 30 }; 31 32 nativeBuildInputs = [ 33 + cython 34 samtools 35 setuptools 36 ];
+2 -3
pkgs/development/python-modules/pysiaalarm/default.nix
··· 7 , setuptools-scm 8 , pytest-asyncio 9 , pytest-cases 10 - , pytestCheckHook 11 - , pytest_7 12 , pytz 13 }: 14 ··· 44 nativeCheckInputs = [ 45 pytest-asyncio 46 pytest-cases 47 - (pytestCheckHook.override { pytest = pytest_7; }) 48 ]; 49 50 pythonImportsCheck = [
··· 7 , setuptools-scm 8 , pytest-asyncio 9 , pytest-cases 10 + , pytest7CheckHook 11 , pytz 12 }: 13 ··· 43 nativeCheckInputs = [ 44 pytest-asyncio 45 pytest-cases 46 + pytest7CheckHook 47 ]; 48 49 pythonImportsCheck = [
+20 -17
pkgs/development/python-modules/pystemmer/default.nix
··· 1 { lib 2 , python 3 - , fetchPypi 4 , fetchFromGitHub 5 - , fetchpatch 6 , buildPythonPackage 7 , cython 8 , libstemmer 9 }: 10 11 buildPythonPackage rec { 12 pname = "pystemmer"; 13 - version = "2.2.0"; 14 - format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "snowballstem"; 18 repo = "pystemmer"; 19 rev = "refs/tags/v${version}"; 20 - hash = "sha256-bJVFeO7XP+aZ2nowQiuws5ziL/FmS1eaOllW6QxA70U="; 21 }; 22 23 - nativeBuildInputs = [ cython ]; 24 - 25 patches = [ 26 - (fetchpatch { 27 - # Allow building with system libstemmer 28 - url = "https://github.com/snowballstem/pystemmer/commit/2f52b4b2ff113fe6c33cebe14ed4fd4388bb1742.patch"; 29 - hash = "sha256-JqR/DUmABgWaq23CNjoKSasL0mNhM2QuU986mouK6A8="; 30 }) 31 - (fetchpatch { 32 - # Fix doctests 33 - url = "https://github.com/snowballstem/pystemmer/commit/b2826f19fe8ba65238b5f3b4cee7096a698f048e.patch"; 34 - hash = "sha256-VTZydjYaJJ/KoHD4KbON36kZnkuAyO51H0Oeg6VXTqg="; 35 - }) 36 ]; 37 38 postConfigure = '' ··· 59 60 meta = with lib; { 61 description = "Snowball stemming algorithms, for information retrieval"; 62 homepage = "http://snowball.tartarus.org/"; 63 - license = licenses.mit; 64 platforms = platforms.unix; 65 }; 66 }
··· 1 { lib 2 , python 3 , fetchFromGitHub 4 + , fetchpatch2 5 , buildPythonPackage 6 , cython 7 + , setuptools 8 , libstemmer 9 }: 10 11 buildPythonPackage rec { 12 pname = "pystemmer"; 13 + version = "2.2.0.1"; 14 + pyproejct = true; 15 16 src = fetchFromGitHub { 17 owner = "snowballstem"; 18 repo = "pystemmer"; 19 rev = "refs/tags/v${version}"; 20 + hash = "sha256-ngPx95ybgJmndpNPBwCa3BCNsozRg+dlEw+nhlIwI58="; 21 }; 22 23 patches = [ 24 + (fetchpatch2 { 25 + # relax cython constraint 26 + name = "pystemmer-relax-cython.patch"; 27 + url = "https://github.com/snowballstem/pystemmer/commit/d3d423dc877b4f49e0ab1776f7edaff37feb6799.patch"; 28 + hash = "sha256-9K6gy/cLFPfW82XYHVVPXUbQhf8XyB4NUi4YqNtyWcw="; 29 }) 30 + ]; 31 + 32 + build-system = [ 33 + cython 34 + setuptools 35 ]; 36 37 postConfigure = '' ··· 58 59 meta = with lib; { 60 description = "Snowball stemming algorithms, for information retrieval"; 61 + downloadPage = "https://github.com/snowballstem/pystemmer"; 62 homepage = "http://snowball.tartarus.org/"; 63 + license = with licenses; [ 64 + bsd3 65 + mit 66 + ]; 67 platforms = platforms.unix; 68 }; 69 }
+2 -2
pkgs/development/python-modules/pytest-asyncio/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "pytest-asyncio"; 12 - version = "0.23.5.post1"; # N.B.: when updating, tests bleak and aioesphomeapi tests 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; ··· 18 owner = "pytest-dev"; 19 repo = "pytest-asyncio"; 20 rev = "refs/tags/v${version}"; 21 - hash = "sha256-k+EmbUptZB2ZLiygwY9WwFA4PNJA+9fEAZYu0xaPZSQ="; 22 }; 23 24 outputs = [
··· 9 10 buildPythonPackage rec { 11 pname = "pytest-asyncio"; 12 + version = "0.23.6"; # N.B.: when updating, tests bleak and aioesphomeapi tests 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; ··· 18 owner = "pytest-dev"; 19 repo = "pytest-asyncio"; 20 rev = "refs/tags/v${version}"; 21 + hash = "sha256-+kyKcVzW05kqtLeC81rk3fJpOtyW3xSYshgl5gqIddE="; 22 }; 23 24 outputs = [
+2 -11
pkgs/development/python-modules/pytest-bdd/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 - , fetchpatch 5 , mako 6 , parse 7 , parse-type ··· 14 15 buildPythonPackage rec { 16 pname = "pytest-bdd"; 17 - version = "6.1.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.7"; ··· 23 owner = "pytest-dev"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 - hash = "sha256-+76jIgfDQPdIoesTr1+QUu8wmOnrdf4KT+TJr9F2Hqk="; 27 }; 28 - 29 - patches = [ 30 - (fetchpatch { 31 - name = "remove-setuptools.patch"; 32 - url = "https://github.com/pytest-dev/pytest-bdd/commit/5d8eda3a30b47d3bd27849884a851adafca765cb.patch"; 33 - hash = "sha256-G2WHaRKlQ9HINufh8wl7+ly7HfDGobMLzzlbwDwd+o8="; 34 - }) 35 - ]; 36 37 nativeBuildInputs = [ 38 poetry-core
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , mako 5 , parse 6 , parse-type ··· 13 14 buildPythonPackage rec { 15 pname = "pytest-bdd"; 16 + version = "7.1.2"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; ··· 22 owner = "pytest-dev"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 + hash = "sha256-PC4VSsUU5qEFp/C/7OTgHINo8wmOo0w2d1Hpe0EnFzE="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core
+2 -2
pkgs/development/python-modules/pytest-doctestplus/default.nix
··· 13 14 buildPythonPackage rec { 15 pname = "pytest-doctestplus"; 16 - version = "1.2.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 - hash = "sha256-xa12Oi+uXu5bZ4jPVedU1AQOxJsOIoj8ncmgFe+buTI="; 24 }; 25 26 postPatch = ''
··· 13 14 buildPythonPackage rec { 15 pname = "pytest-doctestplus"; 16 + version = "1.2.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 + hash = "sha256-JHKoosjOo00vZfZJlUP663SO7LWcWXhS/ZiDm0cwdnk="; 24 }; 25 26 postPatch = ''
+2 -2
pkgs/development/python-modules/pytest-factoryboy/default.nix
··· 19 20 buildPythonPackage rec { 21 pname = "pytest-factoryboy"; 22 - version = "2.5.1"; 23 format = "pyproject"; 24 25 src = fetchFromGitHub { 26 owner = "pytest-dev"; 27 repo = "pytest-factoryboy"; 28 rev = version; 29 - sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig="; 30 }; 31 32 nativeBuildInputs = [
··· 19 20 buildPythonPackage rec { 21 pname = "pytest-factoryboy"; 22 + version = "2.6.1"; 23 format = "pyproject"; 24 25 src = fetchFromGitHub { 26 owner = "pytest-dev"; 27 repo = "pytest-factoryboy"; 28 rev = version; 29 + sha256 = "sha256-GYqYwtbmMWVqImVPPBbZNRJJGcbksUPsIbi6QuPRMco="; 30 }; 31 32 nativeBuildInputs = [
+2 -3
pkgs/development/python-modules/pytest-snapshot/default.nix
··· 4 , packaging 5 , pytest 6 , setuptools-scm 7 - , pytestCheckHook 8 - , pytest_7 9 , pythonOlder 10 }: 11 ··· 37 38 nativeCheckInputs = [ 39 # https://github.com/joseph-roitman/pytest-snapshot/issues/71 40 - (pytestCheckHook.override { pytest = pytest_7; }) 41 ]; 42 43 pythonImportsCheck = [
··· 4 , packaging 5 , pytest 6 , setuptools-scm 7 + , pytest7CheckHook 8 , pythonOlder 9 }: 10 ··· 36 37 nativeCheckInputs = [ 38 # https://github.com/joseph-roitman/pytest-snapshot/issues/71 39 + pytest7CheckHook 40 ]; 41 42 pythonImportsCheck = [
+2 -3
pkgs/development/python-modules/pytest-unordered/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytest 5 - , pytest_7 6 - , pytestCheckHook 7 }: 8 9 buildPythonPackage rec { ··· 24 25 nativeCheckInputs = [ 26 # https://github.com/utapyngo/pytest-unordered/issues/15 27 - (pytestCheckHook.override { pytest = pytest_7; }) 28 ]; 29 30 pythonImportsCheck = [
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytest 5 + , pytest7CheckHook 6 }: 7 8 buildPythonPackage rec { ··· 23 24 nativeCheckInputs = [ 25 # https://github.com/utapyngo/pytest-unordered/issues/15 26 + pytest7CheckHook 27 ]; 28 29 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/pytest/default.nix
··· 29 30 buildPythonPackage rec { 31 pname = "pytest"; 32 - version = "8.0.2"; 33 pyproject = true; 34 35 src = fetchPypi { 36 inherit pname version; 37 - hash = "sha256-1AUdYjouC35RlgupYxk7Cc5trrl1mkUYRKIeTd7fwb0="; 38 }; 39 40 outputs = [
··· 29 30 buildPythonPackage rec { 31 pname = "pytest"; 32 + version = "8.1.1"; 33 pyproject = true; 34 35 src = fetchPypi { 36 inherit pname version; 37 + hash = "sha256-rJeBQadZSJSIF9NgKXt6rg/LnW/2vJ7G1RS4XVplwEQ="; 38 }; 39 40 outputs = [
+2 -2
pkgs/development/python-modules/python-box/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , cython_3 4 , fetchFromGitHub 5 , msgpack 6 , poetry-core ··· 29 }; 30 31 nativeBuildInputs = [ 32 - cython_3 33 setuptools 34 ]; 35
··· 1 { lib 2 , buildPythonPackage 3 + , cython 4 , fetchFromGitHub 5 , msgpack 6 , poetry-core ··· 29 }; 30 31 nativeBuildInputs = [ 32 + cython 33 setuptools 34 ]; 35
+2 -3
pkgs/development/python-modules/python-openems/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchFromGitHub 4 - , cython 5 , openems 6 , csxcad 7 , boost ··· 20 sourceRoot = "${src.name}/python"; 21 22 nativeBuildInputs = [ 23 - cython 24 boost 25 ]; 26
··· 1 { lib 2 , buildPythonPackage 3 + , cython_0 4 , openems 5 , csxcad 6 , boost ··· 19 sourceRoot = "${src.name}/python"; 20 21 nativeBuildInputs = [ 22 + cython_0 23 boost 24 ]; 25
+2 -2
pkgs/development/python-modules/python-rtmidi/default.nix
··· 7 , CoreMIDI 8 , CoreServices 9 , Foundation 10 - , cython_3 11 , fetchPypi 12 , flake8 13 , libjack2 ··· 33 }; 34 35 nativeBuildInputs = [ 36 - cython_3 37 meson-python 38 ninja 39 pkg-config
··· 7 , CoreMIDI 8 , CoreServices 9 , Foundation 10 + , cython 11 , fetchPypi 12 , flake8 13 , libjack2 ··· 33 }; 34 35 nativeBuildInputs = [ 36 + cython 37 meson-python 38 ninja 39 pkg-config
-61
pkgs/development/python-modules/python-zbar/0001-python-enum-fix-build-for-Python-3.11.patch
··· 1 - From 64de7911d2938fc3601fec39c08008465b9d4f6f Mon Sep 17 00:00:00 2001 2 - From: Nick Cao <nickcao@nichi.co> 3 - Date: Tue, 7 Feb 2023 17:12:50 +0800 4 - Subject: [PATCH] python: enum: fix build for Python 3.11 5 - MIME-Version: 1.0 6 - Content-Type: text/plain; charset=UTF-8 7 - Content-Transfer-Encoding: 8bit 8 - 9 - Python 3.9 introduced Py_SET_SIZE function to set size instead of 10 - relying on Py_SIZE() as a macro [3.9]. 11 - 12 - Python 3.10 started to encourage to use Py_SET_SIZE instead of 13 - assigning into return value of Py_SIZE [3.10]. 14 - 15 - Python 3.11 flips the switch, turn Py_SIZE into a function [3.11], 16 - thus Py_SIZE(obj) will be a rvalue. We need to use Py_SET_SIZE 17 - to set size now. 18 - 19 - [3.9]: https://docs.python.org/3.9/c-api/structures.html#c.Py_SET_SIZE 20 - [3.10]: https://docs.python.org/3.10/c-api/structures.html#c.Py_SIZE 21 - [3.11]: https://docs.python.org/3.11/c-api/structures.html#c.Py_SIZE 22 - 23 - Adapted from https://github.com/mchehab/zbar/pull/231 24 - 25 - Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> 26 - Signed-off-by: Nick Cao <nickcao@nichi.co> 27 - --- 28 - python/enum.c | 8 ++++++++ 29 - 1 file changed, 8 insertions(+) 30 - 31 - diff --git a/python/enum.c b/python/enum.c 32 - index dfe1b1e..4833a20 100644 33 - --- a/python/enum.c 34 - +++ b/python/enum.c 35 - @@ -52,7 +52,11 @@ enumitem_new (PyTypeObject *type, 36 - 37 - /* we assume the "fast path" for a single-digit ints (see longobject.c) */ 38 - /* this also holds if we get a small_int preallocated long */ 39 - +#if PY_VERSION_HEX >= 0x030900A4 40 - + Py_SET_SIZE(&self->val, Py_SIZE(longval)); 41 - +#else 42 - Py_SIZE(&self->val) = Py_SIZE(longval); 43 - +#endif 44 - self->val.ob_digit[0] = longval->ob_digit[0]; 45 - Py_DECREF(longval); 46 - #else 47 - @@ -143,7 +147,11 @@ zbarEnumItem_New (PyObject *byname, 48 - 49 - /* we assume the "fast path" for a single-digit ints (see longobject.c) */ 50 - /* this also holds if we get a small_int preallocated long */ 51 - +#if PY_VERSION_HEX >= 0x030900A4 52 - + Py_SET_SIZE(&self->val, Py_SIZE(longval)); 53 - +#else 54 - Py_SIZE(&self->val) = Py_SIZE(longval); 55 - +#endif 56 - self->val.ob_digit[0] = longval->ob_digit[0]; 57 - Py_DECREF(longval); 58 - 59 - -- 60 - 2.39.1 61 -
···
+15 -12
pkgs/development/python-modules/python-zbar/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pillow 5 , zbar 6 , pytestCheckHook ··· 9 buildPythonPackage rec { 10 pname = "python-zbar"; 11 version = "0.23.93"; 12 - format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "mchehab"; ··· 18 hash = "sha256-6gOqMsmlYy6TK+iYPIBsCPAk8tYDliZYMYeTOidl4XQ="; 19 }; 20 21 - patches = [ 22 - # python: enum: fix build for Python 3.11 23 - # https://github.com/mchehab/zbar/pull/231 24 - # the patch is reworked as it does not cleanly apply 25 - ./0001-python-enum-fix-build-for-Python-3.11.patch 26 - ]; 27 28 - propagatedBuildInputs = [ pillow ]; 29 30 buildInputs = [ zbar ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 - preBuild = '' 35 - cd python 36 - ''; 37 - 38 disabledTests = [ 39 #AssertionError: b'Y800' != 'Y800' 40 "test_format" ··· 42 #Requires loading a recording device 43 #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680> 44 "test_processing" 45 ]; 46 47 pythonImportsCheck = [ "zbar" ];
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , pythonAtLeast 5 + , setuptools 6 , pillow 7 , zbar 8 , pytestCheckHook ··· 11 buildPythonPackage rec { 12 pname = "python-zbar"; 13 version = "0.23.93"; 14 + pyproject = true; 15 + 16 + # distutils usage in setup.py 17 + disabled = pythonAtLeast "3.12"; 18 19 src = fetchFromGitHub { 20 owner = "mchehab"; ··· 23 hash = "sha256-6gOqMsmlYy6TK+iYPIBsCPAk8tYDliZYMYeTOidl4XQ="; 24 }; 25 26 + postPatch = '' 27 + cd python 28 + ''; 29 + 30 + build-system = [ setuptools ]; 31 32 + dependencies = [ pillow ]; 33 34 buildInputs = [ zbar ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 disabledTests = [ 39 #AssertionError: b'Y800' != 'Y800' 40 "test_format" ··· 42 #Requires loading a recording device 43 #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680> 44 "test_processing" 45 + # Version too long? 46 + # self.assertEqual(len(ver), 2) 47 + "test_version" 48 ]; 49 50 pythonImportsCheck = [ "zbar" ];
+2 -2
pkgs/development/python-modules/pyyaml/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 - , cython 6 , setuptools 7 , libyaml 8 , python ··· 24 }; 25 26 nativeBuildInputs = [ 27 - cython 28 setuptools 29 ]; 30
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 + , cython_0 6 , setuptools 7 , libyaml 8 , python ··· 24 }; 25 26 nativeBuildInputs = [ 27 + cython_0 28 setuptools 29 ]; 30
+2 -2
pkgs/development/python-modules/pyzmq/default.nix
··· 4 , isPyPy 5 6 # build-system 7 - , cython_3 8 , setuptools 9 , setuptools-scm 10 , packaging ··· 40 ] ++ (if isPyPy then [ 41 cffi 42 ] else [ 43 - cython_3 44 ]); 45 46 buildInputs = [
··· 4 , isPyPy 5 6 # build-system 7 + , cython 8 , setuptools 9 , setuptools-scm 10 , packaging ··· 40 ] ++ (if isPyPy then [ 41 cffi 42 ] else [ 43 + cython 44 ]); 45 46 buildInputs = [
+2 -7
pkgs/development/python-modules/quart/default.nix
··· 26 , mock 27 , py 28 , pytest-asyncio 29 - , pytestCheckHook 30 }: 31 32 buildPythonPackage rec { ··· 76 mock 77 py 78 pytest-asyncio 79 - pytestCheckHook 80 - ]; 81 - 82 - pytestFlagsArray = [ 83 - # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 84 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 85 ]; 86 87 meta = with lib; {
··· 26 , mock 27 , py 28 , pytest-asyncio 29 + , pytest7CheckHook 30 }: 31 32 buildPythonPackage rec { ··· 76 mock 77 py 78 pytest-asyncio 79 + pytest7CheckHook 80 ]; 81 82 meta = with lib; {
+2 -2
pkgs/development/python-modules/qutip/default.nix
··· 3 , buildPythonPackage 4 , cvxopt 5 , cvxpy 6 - , cython 7 , fetchFromGitHub 8 , ipython 9 , matplotlib ··· 31 }; 32 33 nativeBuildInputs = [ 34 - cython 35 ]; 36 37 propagatedBuildInputs = [
··· 3 , buildPythonPackage 4 , cvxopt 5 , cvxpy 6 + , cython_0 7 , fetchFromGitHub 8 , ipython 9 , matplotlib ··· 31 }; 32 33 nativeBuildInputs = [ 34 + cython_0 35 ]; 36 37 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/rangehttpserver/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , setuptools 5 - , pytestCheckHook 6 , requests 7 }: 8 ··· 25 __darwinAllowLocalNetworking = true; 26 27 nativeCheckInputs = [ 28 - pytestCheckHook 29 requests 30 ]; 31
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , setuptools 5 + , pytest7CheckHook 6 , requests 7 }: 8 ··· 25 __darwinAllowLocalNetworking = true; 26 27 nativeCheckInputs = [ 28 + pytest7CheckHook 29 requests 30 ]; 31
+2 -2
pkgs/development/python-modules/rapidfuzz/default.nix
··· 4 , pythonOlder 5 , fetchFromGitHub 6 , cmake 7 - , cython_3 8 , ninja 9 , scikit-build 10 , setuptools ··· 37 38 nativeBuildInputs = [ 39 cmake 40 - cython_3 41 ninja 42 scikit-build 43 setuptools
··· 4 , pythonOlder 5 , fetchFromGitHub 6 , cmake 7 + , cython 8 , ninja 9 , scikit-build 10 , setuptools ··· 37 38 nativeBuildInputs = [ 39 cmake 40 + cython 41 ninja 42 scikit-build 43 setuptools
+2 -2
pkgs/development/python-modules/rasterio/default.nix
··· 13 , click 14 , click-plugins 15 , cligj 16 - , cython_3 17 , gdal 18 , hypothesis 19 , ipython ··· 55 ]; 56 57 nativeBuildInputs = [ 58 - cython_3 59 gdal 60 numpy 61 oldest-supported-numpy
··· 13 , click 14 , click-plugins 15 , cligj 16 + , cython 17 , gdal 18 , hypothesis 19 , ipython ··· 55 ]; 56 57 nativeBuildInputs = [ 58 + cython 59 gdal 60 numpy 61 oldest-supported-numpy
+2 -2
pkgs/development/python-modules/razdel/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytestCheckHook 5 }: 6 7 buildPythonPackage rec { ··· 14 hash = "sha256-QzTA/f401OiIzw7YVJaMnfFPClR9+Qmnf0Y0+f/mJuY="; 15 }; 16 17 - nativeCheckInputs = [ pytestCheckHook ]; 18 pytestFlagsArray = [ "razdel" ]; 19 pythonImportsCheck = [ "razdel" ]; 20
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pytest7CheckHook 5 }: 6 7 buildPythonPackage rec { ··· 14 hash = "sha256-QzTA/f401OiIzw7YVJaMnfFPClR9+Qmnf0Y0+f/mJuY="; 15 }; 16 17 + nativeCheckInputs = [ pytest7CheckHook ]; 18 pytestFlagsArray = [ "razdel" ]; 19 pythonImportsCheck = [ "razdel" ]; 20
+2 -3
pkgs/development/python-modules/rdflib/default.nix
··· 23 # tests 24 , pip 25 , pytest-cov 26 - , pytestCheckHook 27 - , pytest_7 28 , setuptools 29 }: 30 ··· 69 pip 70 pytest-cov 71 # Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted. 72 - (pytestCheckHook.override { pytest = pytest_7; }) 73 setuptools 74 ] 75 ++ passthru.optional-dependencies.networkx
··· 23 # tests 24 , pip 25 , pytest-cov 26 + , pytest7CheckHook 27 , setuptools 28 }: 29 ··· 68 pip 69 pytest-cov 70 # Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted. 71 + pytest7CheckHook 72 setuptools 73 ] 74 ++ passthru.optional-dependencies.networkx
+2 -2
pkgs/development/python-modules/reproject/default.nix
··· 4 , astropy-healpix 5 , buildPythonPackage 6 , cloudpickle 7 - , cython_3 8 , dask 9 , fetchPypi 10 , fsspec ··· 37 38 nativeBuildInputs = [ 39 astropy-extension-helpers 40 - cython_3 41 numpy 42 oldest-supported-numpy 43 setuptools-scm
··· 4 , astropy-healpix 5 , buildPythonPackage 6 , cloudpickle 7 + , cython 8 , dask 9 , fetchPypi 10 , fsspec ··· 37 38 nativeBuildInputs = [ 39 astropy-extension-helpers 40 + cython 41 numpy 42 oldest-supported-numpy 43 setuptools-scm
+6
pkgs/development/python-modules/rmscene/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 , poetry-core 6 , packaging ··· 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 + , pythonRelaxDepsHook 5 , fetchFromGitHub 6 , poetry-core 7 , packaging ··· 25 26 nativeBuildInputs = [ 27 poetry-core 28 + pythonRelaxDepsHook 29 + ]; 30 + 31 + pythonRelaxDeps = [ 32 + "packaging" 33 ]; 34 35 propagatedBuildInputs = [
+4
pkgs/development/python-modules/rpyc/default.nix
··· 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Disable tests that requires network access 39 "test_api"
··· 34 pytestCheckHook 35 ]; 36 37 + preCheck = '' 38 + export PYTHONPATH=$(pwd)/tests:$PYTHONPATH 39 + ''; 40 + 41 disabledTests = [ 42 # Disable tests that requires network access 43 "test_api"
+2 -2
pkgs/development/python-modules/rtmidi-python/default.nix
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 - , cython 6 , alsa-lib 7 , CoreAudio 8 , CoreMIDI ··· 23 rm rtmidi_python.cpp 24 ''; 25 26 - nativeBuildInputs = [ cython ]; 27 buildInputs = lib.optionals stdenv.isLinux [ 28 alsa-lib 29 ] ++ lib.optionals stdenv.isDarwin [
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 + , cython_0 6 , alsa-lib 7 , CoreAudio 8 , CoreMIDI ··· 23 rm rtmidi_python.cpp 24 ''; 25 26 + nativeBuildInputs = [ cython_0 ]; 27 buildInputs = lib.optionals stdenv.isLinux [ 28 alsa-lib 29 ] ++ lib.optionals stdenv.isDarwin [
+19 -8
pkgs/development/python-modules/scikit-fuzzy/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , pythonOlder 4 , fetchFromGitHub 5 , fetchpatch 6 , matplotlib 7 , networkx 8 , nose 9 , numpy 10 , scipy 11 - , pytestCheckHook 12 }: 13 14 buildPythonPackage rec { 15 pname = "scikit-fuzzy"; 16 version = "unstable-2022-11-07"; 17 - format = "setuptools"; 18 19 - disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = pname; ··· 44 }) 45 ]; 46 47 - propagatedBuildInputs = [ networkx numpy scipy ]; 48 - nativeCheckInputs = [ matplotlib nose pytestCheckHook ]; 49 50 - pytestFlagsArray = [ 51 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 52 ]; 53 54 pythonImportsCheck = [ "skfuzzy" ];
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , fetchpatch 5 + , pythonAtLeast 6 + , setuptools 7 , matplotlib 8 , networkx 9 , nose 10 , numpy 11 , scipy 12 + , pytest7CheckHook 13 }: 14 15 buildPythonPackage rec { 16 pname = "scikit-fuzzy"; 17 version = "unstable-2022-11-07"; 18 + pyproject = true; 19 20 + # code depends on distutils 21 + disabled = pythonAtLeast "3.12"; 22 23 src = fetchFromGitHub { 24 owner = pname; ··· 46 }) 47 ]; 48 49 + build-system = [ 50 + setuptools 51 + ]; 52 + 53 + propagatedBuildInputs = [ 54 + networkx 55 + numpy 56 + scipy 57 + ]; 58 59 + nativeCheckInputs = [ 60 + matplotlib 61 + nose 62 + pytest7CheckHook 63 ]; 64 65 pythonImportsCheck = [ "skfuzzy" ];
+2 -2
pkgs/development/python-modules/scikit-learn/default.nix
··· 4 , fetchPypi 5 6 # build-system 7 - , cython_3 8 , gfortran 9 , numpy 10 , scipy ··· 46 ]; 47 48 build-system = [ 49 - cython_3 50 numpy 51 scipy 52 setuptools
··· 4 , fetchPypi 5 6 # build-system 7 + , cython 8 , gfortran 9 , numpy 10 , scipy ··· 46 ]; 47 48 build-system = [ 49 + cython 50 numpy 51 scipy 52 setuptools
+2 -3
pkgs/development/python-modules/scipy/default.nix
··· 16 , wheel 17 , setuptools 18 , hypothesis 19 - , pytestCheckHook 20 - , pytest_7 21 , pytest-xdist 22 , numpy 23 , pybind11 ··· 119 nativeCheckInputs = [ 120 hypothesis 121 # Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted. 122 - (pytestCheckHook.override { pytest = pytest_7; }) 123 pytest-xdist 124 ]; 125
··· 16 , wheel 17 , setuptools 18 , hypothesis 19 + , pytest7CheckHook 20 , pytest-xdist 21 , numpy 22 , pybind11 ··· 118 nativeCheckInputs = [ 119 hypothesis 120 # Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted. 121 + pytest7CheckHook 122 pytest-xdist 123 ]; 124
+2 -2
pkgs/development/python-modules/seabreeze/default.nix
··· 3 , buildPythonPackage 4 5 # build-system 6 - , cython_3 7 , git 8 , pkgconfig 9 , setuptools ··· 40 }; 41 42 nativeBuildInputs = [ 43 - cython_3 44 git 45 pkgconfig 46 setuptools
··· 3 , buildPythonPackage 4 5 # build-system 6 + , cython 7 , git 8 , pkgconfig 9 , setuptools ··· 40 }; 41 42 nativeBuildInputs = [ 43 + cython 44 git 45 pkgconfig 46 setuptools
+2 -2
pkgs/development/python-modules/setuptools/default.nix
··· 8 9 buildPythonPackage rec { 10 pname = "setuptools"; 11 - version = "69.1.1"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "pypa"; 16 repo = "setuptools"; 17 rev = "refs/tags/v${version}"; 18 - hash = "sha256-TWW8kW7ZjRsl5Y0CEVHqhIVJsiRixSSYe/ctSO1c/78="; 19 }; 20 21 patches = [
··· 8 9 buildPythonPackage rec { 10 pname = "setuptools"; 11 + version = "69.2.0"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "pypa"; 16 repo = "setuptools"; 17 rev = "refs/tags/v${version}"; 18 + hash = "sha256-kll4zYFQn4g/8Fq0Y5vLvDXtotxYMbiNAgGa0sClFQk="; 19 }; 20 21 patches = [
+3 -4
pkgs/development/python-modules/sfepy/default.nix
··· 1 - { stdenv 2 - , lib 3 , buildPythonPackage 4 , fetchFromGitHub 5 , numpy ··· 7 , matplotlib 8 , pyparsing 9 , tables 10 - , cython 11 , python 12 , sympy 13 , meshio ··· 34 35 propagatedBuildInputs = [ 36 numpy 37 - cython 38 scipy 39 matplotlib 40 pyparsing
··· 1 + { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , numpy ··· 6 , matplotlib 7 , pyparsing 8 , tables 9 + , cython_0 10 , python 11 , sympy 12 , meshio ··· 33 34 propagatedBuildInputs = [ 35 numpy 36 + cython_0 37 scipy 38 matplotlib 39 pyparsing
+2 -2
pkgs/development/python-modules/shapely/1.8.nix
··· 6 , pythonOlder 7 , substituteAll 8 9 - , cython 10 , geos_3_11 11 , numpy 12 , oldest-supported-numpy ··· 44 ''; 45 46 nativeBuildInputs = [ 47 - cython 48 geos_3_11 # for geos-config 49 oldest-supported-numpy 50 setuptools
··· 6 , pythonOlder 7 , substituteAll 8 9 + , cython_0 10 , geos_3_11 11 , numpy 12 , oldest-supported-numpy ··· 44 ''; 45 46 nativeBuildInputs = [ 47 + cython_0 48 geos_3_11 # for geos-config 49 oldest-supported-numpy 50 setuptools
+2 -2
pkgs/development/python-modules/shapely/default.nix
··· 5 , pytestCheckHook 6 , pythonOlder 7 8 - , cython 9 , geos 10 , numpy 11 , oldest-supported-numpy ··· 26 }; 27 28 nativeBuildInputs = [ 29 - cython 30 geos # for geos-config 31 oldest-supported-numpy 32 setuptools
··· 5 , pytestCheckHook 6 , pythonOlder 7 8 + , cython_0 9 , geos 10 , numpy 11 , oldest-supported-numpy ··· 26 }; 27 28 nativeBuildInputs = [ 29 + cython_0 30 geos # for geos-config 31 oldest-supported-numpy 32 setuptools
+13 -5
pkgs/development/python-modules/shlib/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 , braceexpand 6 , inform ··· 9 buildPythonPackage rec { 10 pname = "shlib"; 11 version = "1.6"; 12 - format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "KenKundert"; ··· 18 hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ="; 19 }; 20 21 - pythonImportsCheck = [ "shlib" ]; 22 postPatch = '' 23 patchShebangs . 24 ''; 25 - nativeCheckInputs = [ 26 - pytestCheckHook 27 ]; 28 - propagatedBuildInputs = [ 29 braceexpand 30 inform 31 ]; 32 33 meta = with lib; { 34 description = "shell library";
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , flit-core 5 , pytestCheckHook 6 , braceexpand 7 , inform ··· 10 buildPythonPackage rec { 11 pname = "shlib"; 12 version = "1.6"; 13 + pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "KenKundert"; ··· 19 hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ="; 20 }; 21 22 postPatch = '' 23 patchShebangs . 24 ''; 25 + 26 + build-system = [ 27 + flit-core 28 ]; 29 + 30 + dependencies = [ 31 braceexpand 32 inform 33 ]; 34 + 35 + nativeCheckInputs = [ 36 + pytestCheckHook 37 + ]; 38 + 39 + pythonImportsCheck = [ "shlib" ]; 40 41 meta = with lib; { 42 description = "shell library";
+3 -2
pkgs/development/python-modules/smart-open/default.nix
··· 19 20 buildPythonPackage rec { 21 pname = "smart-open"; 22 - version = "7.0.1"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.7"; ··· 28 owner = "RaRe-Technologies"; 29 repo = "smart_open"; 30 rev = "refs/tags/v${version}"; 31 - hash = "sha256-yGy4xNoHCE+LclBBTMVtTKP6GYZ5w09NJ0OmsUPnir4="; 32 }; 33 34 build-system = [ ··· 88 ]; 89 90 meta = with lib; { 91 description = "Library for efficient streaming of very large file"; 92 homepage = "https://github.com/RaRe-Technologies/smart_open"; 93 license = licenses.mit;
··· 19 20 buildPythonPackage rec { 21 pname = "smart-open"; 22 + version = "7.0.4"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.7"; ··· 28 owner = "RaRe-Technologies"; 29 repo = "smart_open"; 30 rev = "refs/tags/v${version}"; 31 + hash = "sha256-4HOTaF6AKXGlVCvSGKnnaH73aa4IO0aRxz03XQ4gSd8="; 32 }; 33 34 build-system = [ ··· 88 ]; 89 90 meta = with lib; { 91 + changelog = "https://github.com/piskvorky/smart_open/releases/tag/v${version}"; 92 description = "Library for efficient streaming of very large file"; 93 homepage = "https://github.com/RaRe-Technologies/smart_open"; 94 license = licenses.mit;
+2 -2
pkgs/development/python-modules/soxr/default.nix
··· 3 , fetchFromGitHub 4 5 # build-system 6 - , cython_3 7 , numpy 8 , oldest-supported-numpy 9 , setuptools ··· 36 ''; 37 38 nativeBuildInputs = [ 39 - cython_3 40 gnutar 41 numpy 42 oldest-supported-numpy
··· 3 , fetchFromGitHub 4 5 # build-system 6 + , cython 7 , numpy 8 , oldest-supported-numpy 9 , setuptools ··· 36 ''; 37 38 nativeBuildInputs = [ 39 + cython 40 gnutar 41 numpy 42 oldest-supported-numpy
+15 -4
pkgs/development/python-modules/sparse/default.nix
··· 4 , fetchPypi 5 , numba 6 , numpy 7 - , pytestCheckHook 8 , pythonOlder 9 , scipy 10 }: 11 12 buildPythonPackage rec { 13 pname = "sparse"; 14 version = "0.15.1"; 15 - format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 ··· 21 hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k="; 22 }; 23 24 - propagatedBuildInputs = [ 25 numba 26 numpy 27 scipy ··· 29 30 nativeCheckInputs = [ 31 dask 32 - pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [
··· 4 , fetchPypi 5 , numba 6 , numpy 7 + , pytest7CheckHook 8 , pythonOlder 9 + , setuptools 10 + , setuptools-scm 11 , scipy 12 }: 13 14 buildPythonPackage rec { 15 pname = "sparse"; 16 version = "0.15.1"; 17 + pyproject = true; 18 19 disabled = pythonOlder "3.6"; 20 ··· 23 hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k="; 24 }; 25 26 + postPatch = '' 27 + sed -i "/addopts =/d" pytest.ini 28 + ''; 29 + 30 + build-system = [ 31 + setuptools 32 + setuptools-scm 33 + ]; 34 + 35 + dependencies = [ 36 numba 37 numpy 38 scipy ··· 40 41 nativeCheckInputs = [ 42 dask 43 + pytest7CheckHook 44 ]; 45 46 pythonImportsCheck = [
+2 -3
pkgs/development/python-modules/sphinx/default.nix
··· 27 , sphinxcontrib-websupport 28 29 # check phase 30 - , cython 31 , filelock 32 , html5lib 33 , pytestCheckHook ··· 83 __darwinAllowLocalNetworking = true; 84 85 nativeCheckInputs = [ 86 - cython 87 filelock 88 html5lib 89 pytestCheckHook ··· 108 "test_class_alias_having_doccomment" 109 "test_class_alias_for_imported_object_having_doccomment" 110 "test_decorators" 111 ] ++ lib.optionals isPyPy [ 112 # PyPy has not __builtins__ which get asserted 113 # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous ··· 117 "test_autodoc_inherited_members_None" 118 "test_automethod_for_builtin" 119 "test_builtin_function" 120 - "test_cython" 121 "test_isattributedescriptor" 122 "test_methoddescriptor" 123 "test_partialfunction"
··· 27 , sphinxcontrib-websupport 28 29 # check phase 30 , filelock 31 , html5lib 32 , pytestCheckHook ··· 82 __darwinAllowLocalNetworking = true; 83 84 nativeCheckInputs = [ 85 filelock 86 html5lib 87 pytestCheckHook ··· 106 "test_class_alias_having_doccomment" 107 "test_class_alias_for_imported_object_having_doccomment" 108 "test_decorators" 109 + # requires cython_0, but fails miserably on 3.11 110 + "test_cython" 111 ] ++ lib.optionals isPyPy [ 112 # PyPy has not __builtins__ which get asserted 113 # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous ··· 117 "test_autodoc_inherited_members_None" 118 "test_automethod_for_builtin" 119 "test_builtin_function" 120 "test_isattributedescriptor" 121 "test_methoddescriptor" 122 "test_partialfunction"
+2 -2
pkgs/development/python-modules/sqlmodel/default.nix
··· 6 , poetry-core 7 , pydantic 8 , pytest-asyncio 9 - , pytestCheckHook 10 , pythonOlder 11 , sqlalchemy 12 }: ··· 38 dirty-equals 39 fastapi 40 pytest-asyncio 41 - pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [
··· 6 , poetry-core 7 , pydantic 8 , pytest-asyncio 9 + , pytest7CheckHook 10 , pythonOlder 11 , sqlalchemy 12 }: ··· 38 dirty-equals 39 fastapi 40 pytest-asyncio 41 + pytest7CheckHook 42 ]; 43 44 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/srsly/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 - , cython 6 , catalogue 7 , mock 8 , numpy ··· 26 }; 27 28 nativeBuildInputs = [ 29 - cython 30 setuptools 31 ]; 32
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 + , cython_0 6 , catalogue 7 , mock 8 , numpy ··· 26 }; 27 28 nativeBuildInputs = [ 29 + cython_0 30 setuptools 31 ]; 32
+3 -16
pkgs/development/python-modules/starlette/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 - , fetchPypi 5 6 # build-system 7 , hatchling ··· 18 , httpx 19 20 # tests 21 - , pytest 22 , pytestCheckHook 23 , pythonOlder 24 , trio ··· 29 30 buildPythonPackage rec { 31 pname = "starlette"; 32 - version = "0.37.1"; 33 pyproject = true; 34 35 disabled = pythonOlder "3.8"; ··· 38 owner = "encode"; 39 repo = "starlette"; 40 rev = "refs/tags/${version}"; 41 - hash = "sha256-SJdBss1WKC30oulVTYUwUAJ8WM0KF5xbn/gvV97WM2g="; 42 }; 43 44 nativeBuildInputs = [ ··· 60 ]; 61 62 nativeCheckInputs = [ 63 - (pytestCheckHook.override { 64 - # pytest 8 changes warning message 65 - # see https://github.com/encode/starlette/commit/8da52c2243b8855426c40c16ae24b27734824078 66 - pytest = pytest.overridePythonAttrs (old: rec { 67 - version = "8.1.0"; 68 - src = fetchPypi { 69 - pname = "pytest"; 70 - inherit version; 71 - hash = "sha256-+PoEq4+Y0YUROuYOptecIvgUOxS8HK7O1EoKuESSgyM="; 72 - }; 73 - }); 74 - }) 75 trio 76 typing-extensions 77 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 5 # build-system 6 , hatchling ··· 17 , httpx 18 19 # tests 20 , pytestCheckHook 21 , pythonOlder 22 , trio ··· 27 28 buildPythonPackage rec { 29 pname = "starlette"; 30 + version = "0.37.2"; 31 pyproject = true; 32 33 disabled = pythonOlder "3.8"; ··· 36 owner = "encode"; 37 repo = "starlette"; 38 rev = "refs/tags/${version}"; 39 + hash = "sha256-GiCN1sfhLu9i19d2OcLZrlY8E64DFrFh+ITRSvLaxdE="; 40 }; 41 42 nativeBuildInputs = [ ··· 58 ]; 59 60 nativeCheckInputs = [ 61 + pytestCheckHook 62 trio 63 typing-extensions 64 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
+6
pkgs/development/python-modules/streamlit/default.nix
··· 18 , pympler 19 , python-dateutil 20 , pythonOlder 21 , setuptools 22 , requests 23 , rich ··· 44 45 nativeBuildInputs = [ 46 setuptools 47 ]; 48 49 propagatedBuildInputs = [
··· 18 , pympler 19 , python-dateutil 20 , pythonOlder 21 + , pythonRelaxDepsHook 22 , setuptools 23 , requests 24 , rich ··· 45 46 nativeBuildInputs = [ 47 setuptools 48 + pythonRelaxDepsHook 49 + ]; 50 + 51 + pythonRelaxDeps = [ 52 + "packaging" 53 ]; 54 55 propagatedBuildInputs = [
+23 -9
pkgs/development/python-modules/taskw/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , nose 5 - , tox 6 - , six 7 - , python-dateutil 8 , kitchen 9 - , pytestCheckHook 10 , pytz 11 - , pkgs 12 }: 13 14 buildPythonPackage rec { 15 pname = "taskw"; 16 version = "2.0.0"; 17 - format = "setuptools"; 18 19 src = fetchPypi { 20 inherit pname version; ··· 30 substituteInPlace taskw/warrior.py \ 31 --replace '@@taskwarrior@@' '${pkgs.taskwarrior}' 32 ''; 33 34 buildInputs = [ pkgs.taskwarrior ]; 35 36 - propagatedBuildInputs = [ six python-dateutil kitchen pytz ]; 37 38 - nativeCheckInputs = [ pytestCheckHook ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/ralphbean/taskw";
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + 5 + # build-system 6 + , setuptools 7 + 8 + # native dependencies 9 + , pkgs 10 + 11 + # dependencies 12 , kitchen 13 + , python-dateutil 14 , pytz 15 + 16 + # tests 17 + , pytest7CheckHook 18 }: 19 20 buildPythonPackage rec { 21 pname = "taskw"; 22 version = "2.0.0"; 23 + pyproject = true; 24 25 src = fetchPypi { 26 inherit pname version; ··· 36 substituteInPlace taskw/warrior.py \ 37 --replace '@@taskwarrior@@' '${pkgs.taskwarrior}' 38 ''; 39 + 40 + build-system = [ 41 + setuptools 42 + ]; 43 44 buildInputs = [ pkgs.taskwarrior ]; 45 46 + dependencies = [ 47 + kitchen 48 + python-dateutil 49 + pytz 50 + ]; 51 52 + nativeCheckInputs = [ pytest7CheckHook ]; 53 54 meta = with lib; { 55 homepage = "https://github.com/ralphbean/taskw";
+2 -2
pkgs/development/python-modules/textnets/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , cairocffi 4 - , cython_3 5 , fetchPypi 6 , igraph 7 , leidenalg ··· 34 35 nativeBuildInputs = [ 36 pythonRelaxDepsHook 37 - cython_3 38 poetry-core 39 setuptools 40 ];
··· 1 { lib 2 , buildPythonPackage 3 , cairocffi 4 + , cython 5 , fetchPypi 6 , igraph 7 , leidenalg ··· 34 35 nativeBuildInputs = [ 36 pythonRelaxDepsHook 37 + cython 38 poetry-core 39 setuptools 40 ];
+2 -2
pkgs/development/python-modules/thinc/default.nix
··· 9 , CoreGraphics 10 , CoreVideo 11 , cymem 12 - , cython 13 , fetchPypi 14 , hypothesis 15 , mock ··· 50 ]; 51 52 buildInputs = [ 53 - cython 54 ] ++ lib.optionals stdenv.isDarwin [ 55 Accelerate 56 CoreFoundation
··· 9 , CoreGraphics 10 , CoreVideo 11 , cymem 12 + , cython_0 13 , fetchPypi 14 , hypothesis 15 , mock ··· 50 ]; 51 52 buildInputs = [ 53 + cython_0 54 ] ++ lib.optionals stdenv.isDarwin [ 55 Accelerate 56 CoreFoundation
+2 -6
pkgs/development/python-modules/torchsde/default.nix
··· 13 , trampoline 14 15 # tests 16 - , pytestCheckHook 17 }: 18 19 buildPythonPackage rec { ··· 49 pythonImportsCheck = [ "torchsde" ]; 50 51 nativeCheckInputs = [ 52 - pytestCheckHook 53 - ]; 54 - 55 - pytestFlagsArray = [ 56 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 57 ]; 58 59 disabledTests = [
··· 13 , trampoline 14 15 # tests 16 + , pytest7CheckHook 17 }: 18 19 buildPythonPackage rec { ··· 49 pythonImportsCheck = [ "torchsde" ]; 50 51 nativeCheckInputs = [ 52 + pytest7CheckHook 53 ]; 54 55 disabledTests = [
+2 -2
pkgs/development/python-modules/uamqp/default.nix
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , fetchpatch 6 - , cython 7 , certifi 8 , CFNetwork 9 , cmake ··· 68 69 nativeBuildInputs = [ 70 cmake 71 - cython 72 ]; 73 74 buildInputs = [
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , fetchpatch 6 + , cython_0 7 , certifi 8 , CFNetwork 9 , cmake ··· 68 69 nativeBuildInputs = [ 70 cmake 71 + cython_0 72 ]; 73 74 buildInputs = [
+24 -5
pkgs/development/python-modules/uarray/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , fetchpatch 5 , matchpy 6 , numpy 7 , astunparse 8 , typing-extensions 9 - , pytestCheckHook 10 , pytest-cov 11 }: 12 13 buildPythonPackage rec { 14 pname = "uarray"; 15 version = "0.8.2"; 16 - format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "Quansight-Labs"; ··· 31 } 32 )]; 33 34 - nativeCheckInputs = [ pytestCheckHook pytest-cov ]; 35 - propagatedBuildInputs = [ matchpy numpy astunparse typing-extensions ]; 36 37 # Tests must be run from outside the source directory 38 preCheck = '' 39 cd $TMP 40 ''; 41 - pytestFlagsArray = ["--pyargs" "uarray" "-W" "ignore::pytest.PytestRemovedIn8Warning" ]; 42 pythonImportsCheck = [ "uarray" ]; 43 44 meta = with lib; {
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , fetchpatch 5 + , setuptools 6 , matchpy 7 , numpy 8 , astunparse 9 , typing-extensions 10 + , pytest7CheckHook 11 , pytest-cov 12 }: 13 14 buildPythonPackage rec { 15 pname = "uarray"; 16 version = "0.8.2"; 17 + pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "Quansight-Labs"; ··· 32 } 33 )]; 34 35 + build-system = [ 36 + setuptools 37 + ]; 38 + 39 + dependencies = [ 40 + astunparse 41 + matchpy 42 + numpy 43 + typing-extensions 44 + ]; 45 + 46 + nativeCheckInputs = [ 47 + pytest7CheckHook 48 + pytest-cov 49 + ]; 50 51 # Tests must be run from outside the source directory 52 preCheck = '' 53 cd $TMP 54 ''; 55 + 56 + pytestFlagsArray = [ 57 + "--pyargs" 58 + "uarray" 59 + ]; 60 + 61 pythonImportsCheck = [ "uarray" ]; 62 63 meta = with lib; {
+2 -2
pkgs/development/python-modules/uharfbuzz/default.nix
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pythonOlder 6 - , cython_3 7 , setuptools 8 , setuptools-scm 9 , pytestCheckHook ··· 26 }; 27 28 nativeBuildInputs = [ 29 - cython_3 30 setuptools 31 setuptools-scm 32 ];
··· 3 , buildPythonPackage 4 , fetchFromGitHub 5 , pythonOlder 6 + , cython 7 , setuptools 8 , setuptools-scm 9 , pytestCheckHook ··· 26 }; 27 28 nativeBuildInputs = [ 29 + cython 30 setuptools 31 setuptools-scm 32 ];
+2 -2
pkgs/development/python-modules/uvloop/default.nix
··· 5 , fetchPypi 6 7 # build-system 8 - , cython 9 , setuptools 10 11 # native dependencies ··· 33 }; 34 35 nativeBuildInputs = [ 36 - cython 37 setuptools 38 ]; 39
··· 5 , fetchPypi 6 7 # build-system 8 + , cython_0 9 , setuptools 10 11 # native dependencies ··· 33 }; 34 35 nativeBuildInputs = [ 36 + cython_0 37 setuptools 38 ]; 39
+3 -3
pkgs/development/python-modules/vine/default.nix
··· 23 pytestCheckHook 24 ]; 25 26 - pytestFlagsArray = [ 27 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 28 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 29 ]; 30 31 pythonImportsCheck = [
··· 23 pytestCheckHook 24 ]; 25 26 + disabledTestPaths = [ 27 + # https://github.com/celery/vine/issues/106 28 + "t/unit/test_synchronization.py" 29 ]; 30 31 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/vispy/default.nix
··· 3 , buildPythonPackage 4 , substituteAll 5 , fetchPypi 6 - , cython_3 7 , fontconfig 8 , freetype-py 9 , hsluv ··· 39 ]; 40 41 nativeBuildInputs = [ 42 - cython_3 43 oldest-supported-numpy 44 setuptools 45 setuptools-scm
··· 3 , buildPythonPackage 4 , substituteAll 5 , fetchPypi 6 + , cython 7 , fontconfig 8 , freetype-py 9 , hsluv ··· 39 ]; 40 41 nativeBuildInputs = [ 42 + cython 43 oldest-supported-numpy 44 setuptools 45 setuptools-scm
+3 -3
pkgs/development/python-modules/wikipedia2vec/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , click 4 - , cython_3 5 , fetchFromGitHub 6 , jieba 7 , joblib ··· 30 }; 31 32 nativeBuildInputs = [ 33 - cython_3 34 setuptools 35 ]; 36 37 propagatedBuildInputs = [ 38 click 39 - cython_3 40 jieba 41 joblib 42 lmdb
··· 1 { lib 2 , buildPythonPackage 3 , click 4 + , cython 5 , fetchFromGitHub 6 , jieba 7 , joblib ··· 30 }; 31 32 nativeBuildInputs = [ 33 + cython 34 setuptools 35 ]; 36 37 propagatedBuildInputs = [ 38 click 39 + cython 40 jieba 41 joblib 42 lmdb
+6 -1
pkgs/development/python-modules/woob/default.nix
··· 2 , babel 3 , buildPythonPackage 4 , fetchFromGitLab 5 - , fetchpatch 6 , html2text 7 , lxml 8 , packaging ··· 37 38 nativeBuildInputs = [ 39 setuptools 40 ]; 41 42 propagatedBuildInputs = [
··· 2 , babel 3 , buildPythonPackage 4 , fetchFromGitLab 5 + , pythonRelaxDepsHook 6 , html2text 7 , lxml 8 , packaging ··· 37 38 nativeBuildInputs = [ 39 setuptools 40 + pythonRelaxDepsHook 41 + ]; 42 + 43 + pythonRelaxDeps = [ 44 + "packaging" 45 ]; 46 47 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/yarl/default.nix
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 - , cython_3 6 , expandvars 7 , setuptools 8 , idna ··· 30 ''; 31 32 nativeBuildInputs = [ 33 - cython_3 34 expandvars 35 setuptools 36 ];
··· 2 , buildPythonPackage 3 , fetchPypi 4 , pythonOlder 5 + , cython 6 , expandvars 7 , setuptools 8 , idna ··· 30 ''; 31 32 nativeBuildInputs = [ 33 + cython 34 expandvars 35 setuptools 36 ];
+2 -2
pkgs/development/python-modules/zeroconf/default.nix
··· 1 { lib 2 - , cython_3 3 , async-timeout 4 , buildPythonPackage 5 , fetchFromGitHub ··· 32 ''; 33 34 nativeBuildInputs = [ 35 - cython_3 36 poetry-core 37 setuptools 38 ];
··· 1 { lib 2 + , cython 3 , async-timeout 4 , buildPythonPackage 5 , fetchFromGitHub ··· 32 ''; 33 34 nativeBuildInputs = [ 35 + cython 36 poetry-core 37 setuptools 38 ];
+1
pkgs/development/tools/analysis/checkov/default.nix
··· 30 "networkx" 31 "openai" 32 "packageurl-python" 33 "pycep-parser" 34 "termcolor" 35 ];
··· 30 "networkx" 31 "openai" 32 "packageurl-python" 33 + "packaging" 34 "pycep-parser" 35 "termcolor" 36 ];
+1 -1
pkgs/development/tools/steamos-devkit/default.nix
··· 23 }; 24 25 nativeBuildInputs = with python3.pkgs; [ 26 - cython 27 pkg-config 28 SDL2 29 ];
··· 23 }; 24 25 nativeBuildInputs = with python3.pkgs; [ 26 + cython_0 27 pkg-config 28 SDL2 29 ];
+1 -1
pkgs/servers/home-assistant/default.nix
··· 257 }; 258 259 nativeBuildInputs = with self; [ 260 - cython_3 261 setuptools 262 libxml2.dev 263 libxslt.dev
··· 257 }; 258 259 nativeBuildInputs = with self; [ 260 + cython 261 setuptools 262 libxml2.dev 263 libxslt.dev
+1 -6
pkgs/servers/radicale/3.x.nix
··· 35 __darwinAllowLocalNetworking = true; 36 37 nativeCheckInputs = with python3.pkgs; [ 38 - pytestCheckHook 39 waitress 40 - ]; 41 - 42 - pytestFlagsArray = [ 43 - # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. 44 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 45 ]; 46 47 passthru.tests = {
··· 35 __darwinAllowLocalNetworking = true; 36 37 nativeCheckInputs = with python3.pkgs; [ 38 + pytest7CheckHook 39 waitress 40 ]; 41 42 passthru.tests = {
+2 -2
pkgs/tools/filesystems/ceph/default.nix
··· 239 inherit version; 240 hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc="; 241 }; 242 - pytestFlagsArray = [ 243 - "-W" "ignore::pytest.PytestRemovedIn8Warning" 244 ]; 245 }); 246
··· 239 inherit version; 240 hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc="; 241 }; 242 + disabledTests = old.disabledTests or [ ] ++ [ 243 + "test_export_md5_digest" 244 ]; 245 }); 246
+2 -2
pkgs/tools/misc/thefuck/default.nix
··· 1 { lib, stdenv, fetchFromGitHub, buildPythonApplication 2 , colorama, decorator, psutil, pyte, six 3 - , go, mock, pytestCheckHook, pytest-mock, pytest_7 4 }: 5 6 buildPythonApplication rec { ··· 16 17 propagatedBuildInputs = [ colorama decorator psutil pyte six ]; 18 19 - nativeCheckInputs = [ go mock (pytestCheckHook.override { pytest = pytest_7; }) pytest-mock ]; 20 21 disabledTests = lib.optionals stdenv.isDarwin [ 22 "test_settings_defaults"
··· 1 { lib, stdenv, fetchFromGitHub, buildPythonApplication 2 , colorama, decorator, psutil, pyte, six 3 + , go, mock, pytest7CheckHook, pytest-mock 4 }: 5 6 buildPythonApplication rec { ··· 16 17 propagatedBuildInputs = [ colorama decorator psutil pyte six ]; 18 19 + nativeCheckInputs = [ go mock pytest7CheckHook pytest-mock ]; 20 21 disabledTests = lib.optionals stdenv.isDarwin [ 22 "test_settings_defaults"
+4 -1
pkgs/tools/security/onlykey-cli/default.nix
··· 10 sha256 = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ="; 11 }; 12 13 propagatedBuildInputs = with python3Packages; [ 14 aenum 15 - cython 16 ecdsa 17 hidapi 18 onlykey-solo-python
··· 10 sha256 = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ="; 11 }; 12 13 + build-system = with python3Packages; [ 14 + cython 15 + ]; 16 + 17 propagatedBuildInputs = with python3Packages; [ 18 aenum 19 ecdsa 20 hidapi 21 onlykey-solo-python
+1 -1
pkgs/tools/virtualization/cloud-init/default.nix
··· 71 ]; 72 73 nativeCheckInputs = with python3.pkgs; [ 74 - (pytestCheckHook.override { pytest = pytest_7; }) 75 httpretty 76 dmidecode 77 # needed for tests; at runtime we rather want the setuid wrapper
··· 71 ]; 72 73 nativeCheckInputs = with python3.pkgs; [ 74 + pytest7CheckHook 75 httpretty 76 dmidecode 77 # needed for tests; at runtime we rather want the setuid wrapper
+3 -8
pkgs/top-level/python-packages.nix
··· 2615 2616 cython = callPackage ../development/python-modules/cython { }; 2617 2618 - cython_3 = self.cython.overridePythonAttrs (old: rec { 2619 - version = "3.0.9"; 2620 - src = old.src.override { 2621 - inherit version; 2622 - hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM="; 2623 - }; 2624 - patches = [ ]; 2625 - }); 2626 2627 cython-test-exception-raiser = callPackage ../development/python-modules/cython-test-exception-raiser { }; 2628 ··· 11785 pytest = callPackage ../development/python-modules/pytest { }; 11786 11787 pytest_7 = callPackage ../development/python-modules/pytest/7.nix { }; 11788 11789 pytest-aio = callPackage ../development/python-modules/pytest-aio { }; 11790
··· 2615 2616 cython = callPackage ../development/python-modules/cython { }; 2617 2618 + cython_0 = callPackage ../development/python-modules/cython/0.nix { }; 2619 2620 cython-test-exception-raiser = callPackage ../development/python-modules/cython-test-exception-raiser { }; 2621 ··· 11778 pytest = callPackage ../development/python-modules/pytest { }; 11779 11780 pytest_7 = callPackage ../development/python-modules/pytest/7.nix { }; 11781 + 11782 + pytest7CheckHook = pytestCheckHook.override { pytest = pytest_7; }; 11783 11784 pytest-aio = callPackage ../development/python-modules/pytest-aio { }; 11785