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