diff --git a/pkgs/applications/science/biology/macs2/default.nix b/pkgs/applications/science/biology/macs2/default.nix index 73f12af6a605..26ec138048f7 100644 --- a/pkgs/applications/science/biology/macs2/default.nix +++ b/pkgs/applications/science/biology/macs2/default.nix @@ -21,7 +21,7 @@ python3.pkgs.buildPythonPackage rec { ]; nativeBuildInputs = with python3.pkgs; [ - cython + cython_0 numpy setuptools wheel diff --git a/pkgs/applications/science/math/sage/python-modules/sage-setup.nix b/pkgs/applications/science/math/sage/python-modules/sage-setup.nix index a96f7ccd5d4c..e1c497678d50 100644 --- a/pkgs/applications/science/math/sage/python-modules/sage-setup.nix +++ b/pkgs/applications/science/math/sage/python-modules/sage-setup.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , sage-src -, cython_3 +, cython , jinja2 , pkgconfig # the python module, not the pkg-config alias }: @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "sage-setup"; src = sage-src; - nativeBuildInputs = [ cython_3 ]; + nativeBuildInputs = [ cython ]; buildInputs = [ pkgconfig ]; propagatedBuildInputs = [ jinja2 ]; diff --git a/pkgs/applications/science/math/sage/sagelib.nix b/pkgs/applications/science/math/sage/sagelib.nix index b67b74e3a0f2..0a2bd8011b0b 100644 --- a/pkgs/applications/science/math/sage/sagelib.nix +++ b/pkgs/applications/science/math/sage/sagelib.nix @@ -48,7 +48,7 @@ , cvxopt , cypari2 , cysignals -, cython_3 +, cython , fpylll , gmpy2 , importlib-metadata @@ -153,7 +153,7 @@ buildPythonPackage rec { cvxopt cypari2 cysignals - cython_3 + cython fpylll gmpy2 importlib-metadata diff --git a/pkgs/development/python-modules/aioesphomeapi/default.nix b/pkgs/development/python-modules/aioesphomeapi/default.nix index c17f2df97fa2..c3a77eb76754 100644 --- a/pkgs/development/python-modules/aioesphomeapi/default.nix +++ b/pkgs/development/python-modules/aioesphomeapi/default.nix @@ -4,7 +4,7 @@ , pythonOlder # build-system -, cython_3 +, cython , setuptools # dependencies @@ -39,7 +39,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools - cython_3 + cython ]; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index d770eb196a28..eb391ab1ae00 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -5,7 +5,7 @@ # build time , astropy-extension-helpers -, cython_3 +, cython , jinja2 , oldest-supported-numpy , setuptools-scm @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeBuildInputs = [ astropy-extension-helpers - cython_3 + cython jinja2 oldest-supported-numpy setuptools-scm diff --git a/pkgs/development/python-modules/blis/default.nix b/pkgs/development/python-modules/blis/default.nix index eec563c79a9d..8b465bcebdc1 100644 --- a/pkgs/development/python-modules/blis/default.nix +++ b/pkgs/development/python-modules/blis/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , setuptools -, cython +, cython_0 , hypothesis , numpy , pytestCheckHook @@ -38,7 +38,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools - cython + cython_0 ]; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/blosc2/default.nix b/pkgs/development/python-modules/blosc2/default.nix index d960139a7d6e..efaec4ead713 100644 --- a/pkgs/development/python-modules/blosc2/default.nix +++ b/pkgs/development/python-modules/blosc2/default.nix @@ -4,7 +4,7 @@ # build-system , cmake -, cython_3 +, cython , ninja , oldest-supported-numpy , pkg-config @@ -47,7 +47,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython_3 + cython ninja oldest-supported-numpy pkg-config diff --git a/pkgs/development/python-modules/bluetooth-data-tools/default.nix b/pkgs/development/python-modules/bluetooth-data-tools/default.nix index 95d6207de10a..fbaf458be3f3 100644 --- a/pkgs/development/python-modules/bluetooth-data-tools/default.nix +++ b/pkgs/development/python-modules/bluetooth-data-tools/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , cryptography -, cython_3 +, cython , poetry-core , pytestCheckHook , pythonOlder @@ -28,7 +28,7 @@ buildPythonPackage rec { env.REQUIRE_CYTHON = 1; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools ]; diff --git a/pkgs/development/python-modules/cached-ipaddress/default.nix b/pkgs/development/python-modules/cached-ipaddress/default.nix index c4d29b98bd76..5e4781ec7503 100644 --- a/pkgs/development/python-modules/cached-ipaddress/default.nix +++ b/pkgs/development/python-modules/cached-ipaddress/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , fetchFromGitHub , poetry-core , pytestCheckHook @@ -30,7 +30,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools wheel diff --git a/pkgs/development/python-modules/cassandra-driver/default.nix b/pkgs/development/python-modules/cassandra-driver/default.nix index e985ed544d3c..8c05e5e0bbb6 100644 --- a/pkgs/development/python-modules/cassandra-driver/default.nix +++ b/pkgs/development/python-modules/cassandra-driver/default.nix @@ -2,7 +2,7 @@ , stdenv , buildPythonPackage , cryptography -, cython +, cython_0 , eventlet , fetchFromGitHub , geomet @@ -43,7 +43,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython + cython_0 ]; buildInputs = [ diff --git a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix index dbab53868f66..429467d65e30 100644 --- a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix +++ b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix @@ -4,7 +4,7 @@ , pythonOlder # build-system -, cython_3 +, cython , poetry-core , setuptools @@ -34,7 +34,7 @@ buildPythonPackage { }; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools ]; diff --git a/pkgs/development/python-modules/clickhouse-cityhash/default.nix b/pkgs/development/python-modules/clickhouse-cityhash/default.nix index d8fad65bef0d..ecb3f3bf290e 100644 --- a/pkgs/development/python-modules/clickhouse-cityhash/default.nix +++ b/pkgs/development/python-modules/clickhouse-cityhash/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , fetchPypi , pythonOlder , setuptools @@ -19,7 +19,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools ]; diff --git a/pkgs/development/python-modules/clickhouse-connect/default.nix b/pkgs/development/python-modules/clickhouse-connect/default.nix index 277216a3f968..58831fb4bef8 100644 --- a/pkgs/development/python-modules/clickhouse-connect/default.nix +++ b/pkgs/development/python-modules/clickhouse-connect/default.nix @@ -4,7 +4,7 @@ , pythonOlder , pytestCheckHook # build_requires -, cython_3 +, cython # install_requires , certifi , importlib-metadata @@ -36,7 +36,7 @@ buildPythonPackage rec { hash = "sha256-YEtcM9+GO8mYv2pyaBYmXdmWLXVuteKtQIJR4H+Xsd4="; }; - nativeBuildInputs = [ cython_3 ]; + nativeBuildInputs = [ cython ]; setupPyBuildFlags = [ "--inplace" ]; enableParallelBuilding = true; diff --git a/pkgs/development/python-modules/clickhouse-driver/default.nix b/pkgs/development/python-modules/clickhouse-driver/default.nix index 716914b3caee..1ddaa5398d9d 100644 --- a/pkgs/development/python-modules/clickhouse-driver/default.nix +++ b/pkgs/development/python-modules/clickhouse-driver/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , clickhouse-cityhash -, cython_3 +, cython , fetchFromGitHub , freezegun , lz4 @@ -29,7 +29,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools ]; diff --git a/pkgs/development/python-modules/cpyparsing/default.nix b/pkgs/development/python-modules/cpyparsing/default.nix index c475652799ea..e063e8847d43 100644 --- a/pkgs/development/python-modules/cpyparsing/default.nix +++ b/pkgs/development/python-modules/cpyparsing/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub -, cython_3 +, cython , pexpect , python , pythonOlder @@ -23,7 +23,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools ]; diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix index f93e04629728..025692de1f74 100644 --- a/pkgs/development/python-modules/cypari2/default.nix +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -5,7 +5,7 @@ , fetchPypi , pari , gmp -, cython_3 +, cython , cysignals }: @@ -45,7 +45,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ cysignals - cython_3 + cython ]; checkPhase = '' diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index 107b552a631c..62cc3dd30d8a 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -2,7 +2,7 @@ , autoreconfHook , fetchPypi , buildPythonPackage -, cython_3 +, cython , pariSupport ? true, pari # for interfacing with the PARI/GP signal handler }: @@ -34,7 +34,7 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - cython_3 + cython ] ++ lib.optionals pariSupport [ # When cysignals is built with pari, including cysignals into the # buildInputs of another python package will cause cython to link against diff --git a/pkgs/development/python-modules/cython/0.nix b/pkgs/development/python-modules/cython/0.nix new file mode 100644 index 000000000000..72ba4a68f038 --- /dev/null +++ b/pkgs/development/python-modules/cython/0.nix @@ -0,0 +1,91 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, fetchpatch +, setuptools +, python +, pkg-config +, gdb +, numpy +, ncurses +}: + +let + excludedTests = [ "reimport_from_subinterpreter" ] + # cython's testsuite is not working very well with libc++ + # We are however optimistic about things outside of testsuite still working + ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ] + # Some tests in the test suite isn't working on aarch64. Disable them for + # now until upstream finds a workaround. + # Upstream issue here: https://github.com/cython/cython/issues/2308 + ++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ] + ++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ] + ; + +in buildPythonPackage rec { + pname = "cython"; + version = "0.29.36"; + pyproject = true; + + src = fetchPypi { + pname = "Cython"; + inherit version; + hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8="; + }; + + nativeBuildInputs = [ + pkg-config + setuptools + ]; + + nativeCheckInputs = [ + gdb numpy ncurses + ]; + + LC_ALL = "en_US.UTF-8"; + + patches = [ + # backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series. + # it does not affect Python code unless the code explicitly uses the feature. + # trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267) + ./trashcan.patch + # The above commit introduces custom trashcan macros, as well as + # compiler changes to use them in Cython-emitted code. The latter + # change is still useful, but the former has been upstreamed as of + # Python 3.8, and the patch below makes Cython use the upstream + # trashcan macros whenever available. This is needed for Python + # 3.11 support, because the API used in Cython's implementation + # changed: https://github.com/cython/cython/pull/4475 + (fetchpatch { + name = "disable-trashcan.patch"; + url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch"; + hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso="; + }) + ]; + + checkPhase = '' + export HOME="$NIX_BUILD_TOP" + ${python.interpreter} runtests.py -j$NIX_BUILD_CORES \ + --no-code-style \ + ${lib.optionalString (builtins.length excludedTests != 0) + ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''} + ''; + + # https://github.com/cython/cython/issues/2785 + # Temporary solution + doCheck = false; + # doCheck = !stdenv.isDarwin; + + # force regeneration of generated code in source distributions + # https://github.com/cython/cython/issues/5089 + setupHook = ./setup-hook.sh; + + meta = { + changelog = "https://github.com/cython/cython/blob/${version}/CHANGES.rst"; + description = "An optimising static compiler for both the Python programming language and the extended Cython programming language"; + homepage = "https://cython.org"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fridh ]; + }; +} diff --git a/pkgs/development/python-modules/cython/default.nix b/pkgs/development/python-modules/cython/default.nix index 72ba4a68f038..4467dc3b459c 100644 --- a/pkgs/development/python-modules/cython/default.nix +++ b/pkgs/development/python-modules/cython/default.nix @@ -2,7 +2,6 @@ , stdenv , buildPythonPackage , fetchPypi -, fetchpatch , setuptools , python , pkg-config @@ -25,16 +24,16 @@ let in buildPythonPackage rec { pname = "cython"; - version = "0.29.36"; + version = "3.0.9"; pyproject = true; src = fetchPypi { pname = "Cython"; inherit version; - hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8="; + hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM="; }; - nativeBuildInputs = [ + build-system = [ pkg-config setuptools ]; @@ -43,26 +42,7 @@ in buildPythonPackage rec { gdb numpy ncurses ]; - LC_ALL = "en_US.UTF-8"; - - patches = [ - # backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series. - # it does not affect Python code unless the code explicitly uses the feature. - # trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267) - ./trashcan.patch - # The above commit introduces custom trashcan macros, as well as - # compiler changes to use them in Cython-emitted code. The latter - # change is still useful, but the former has been upstreamed as of - # Python 3.8, and the patch below makes Cython use the upstream - # trashcan macros whenever available. This is needed for Python - # 3.11 support, because the API used in Cython's implementation - # changed: https://github.com/cython/cython/pull/4475 - (fetchpatch { - name = "disable-trashcan.patch"; - url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch"; - hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso="; - }) - ]; + env.LC_ALL = "en_US.UTF-8"; checkPhase = '' export HOME="$NIX_BUILD_TOP" diff --git a/pkgs/development/python-modules/daqp/default.nix b/pkgs/development/python-modules/daqp/default.nix index 2b134f9f723d..e5ae5e62be90 100644 --- a/pkgs/development/python-modules/daqp/default.nix +++ b/pkgs/development/python-modules/daqp/default.nix @@ -1,9 +1,8 @@ { lib -, stdenv , fetchFromGitHub , buildPythonPackage , unittestCheckHook -, cython +, cython_0 , setuptools , wheel , numpy @@ -32,7 +31,7 @@ buildPythonPackage rec { unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ]; nativeBuildInputs = [ - cython + cython_0 setuptools wheel ]; diff --git a/pkgs/development/python-modules/dbus-fast/default.nix b/pkgs/development/python-modules/dbus-fast/default.nix index 014e7ad01f72..d4db4490415b 100644 --- a/pkgs/development/python-modules/dbus-fast/default.nix +++ b/pkgs/development/python-modules/dbus-fast/default.nix @@ -1,7 +1,7 @@ { lib , async-timeout , buildPythonPackage -, cython_3 +, cython , fetchFromGitHub , poetry-core , pytest-asyncio @@ -30,7 +30,7 @@ buildPythonPackage rec { env.REQUIRE_CYTHON = 1; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools wheel diff --git a/pkgs/development/python-modules/dtlssocket/default.nix b/pkgs/development/python-modules/dtlssocket/default.nix index 80831ea0eb50..bad1a6c73377 100644 --- a/pkgs/development/python-modules/dtlssocket/default.nix +++ b/pkgs/development/python-modules/dtlssocket/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , autoconf -, cython +, cython_0 , setuptools }: @@ -20,7 +20,7 @@ buildPythonPackage rec { nativeBuildInputs = [ autoconf - cython + cython_0 setuptools ]; diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix index d7c55b265a45..b4f62dd6e823 100644 --- a/pkgs/development/python-modules/editdistance/default.nix +++ b/pkgs/development/python-modules/editdistance/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook -, cython_3 +, cython , pdm-backend , setuptools , pythonOlder @@ -23,7 +23,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython pdm-backend setuptools ]; diff --git a/pkgs/development/python-modules/editdistpy/default.nix b/pkgs/development/python-modules/editdistpy/default.nix index a785e1b05b67..537f4851f6a9 100644 --- a/pkgs/development/python-modules/editdistpy/default.nix +++ b/pkgs/development/python-modules/editdistpy/default.nix @@ -7,7 +7,7 @@ , pythonOlder , setuptools -, cython_3 +, cython , symspellpy , numpy @@ -30,7 +30,7 @@ buildPythonPackage rec { build-system = [ setuptools - cython_3 + cython ]; # error: infinite recursion encountered diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix index 2cb7c3cc7895..51f9bfd79a35 100644 --- a/pkgs/development/python-modules/falcon/default.nix +++ b/pkgs/development/python-modules/falcon/default.nix @@ -6,7 +6,7 @@ , fetchFromGitHub # build -, cython_3 +, cython , setuptools # tests @@ -43,7 +43,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ - cython_3 + cython ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/fiona/default.nix b/pkgs/development/python-modules/fiona/default.nix index e19875296ff0..35c9b57ce555 100644 --- a/pkgs/development/python-modules/fiona/default.nix +++ b/pkgs/development/python-modules/fiona/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, cython_3 +, cython , gdal , oldest-supported-numpy , setuptools @@ -34,7 +34,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython gdal # for gdal-config oldest-supported-numpy setuptools diff --git a/pkgs/development/python-modules/fpylll/default.nix b/pkgs/development/python-modules/fpylll/default.nix index 54d3d8f34f79..7e2b0b5ed069 100644 --- a/pkgs/development/python-modules/fpylll/default.nix +++ b/pkgs/development/python-modules/fpylll/default.nix @@ -5,7 +5,7 @@ # build-system , cysignals -, cython_3 +, cython , pkgconfig , setuptools @@ -39,7 +39,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython_3 + cython cysignals pkgconfig setuptools diff --git a/pkgs/development/python-modules/frozenlist/default.nix b/pkgs/development/python-modules/frozenlist/default.nix index 7e2646045518..73860b6f79ff 100644 --- a/pkgs/development/python-modules/frozenlist/default.nix +++ b/pkgs/development/python-modules/frozenlist/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , expandvars , fetchFromGitHub , pep517 @@ -30,7 +30,7 @@ buildPythonPackage rec { nativeBuildInputs = [ expandvars - cython_3 + cython pep517 setuptools wheel diff --git a/pkgs/development/python-modules/fugashi/default.nix b/pkgs/development/python-modules/fugashi/default.nix index 021ac6dd1d11..64f5ef9afcdb 100644 --- a/pkgs/development/python-modules/fugashi/default.nix +++ b/pkgs/development/python-modules/fugashi/default.nix @@ -3,7 +3,7 @@ , pythonOlder , pytestCheckHook , buildPythonPackage -, cython +, cython_0 , mecab , setuptools-scm , ipadic @@ -24,7 +24,7 @@ buildPythonPackage rec { hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU="; }; - nativeBuildInputs = [ cython mecab setuptools-scm ]; + nativeBuildInputs = [ cython_0 mecab setuptools-scm ]; nativeCheckInputs = [ ipadic pytestCheckHook ] ++ passthru.optional-dependencies.unidic-lite; diff --git a/pkgs/development/python-modules/gbinder-python/default.nix b/pkgs/development/python-modules/gbinder-python/default.nix index 6608cf305063..bb64e0c5e6a8 100644 --- a/pkgs/development/python-modules/gbinder-python/default.nix +++ b/pkgs/development/python-modules/gbinder-python/default.nix @@ -1,7 +1,7 @@ { lib , fetchFromGitHub , buildPythonPackage -, cython +, cython_0 , pkg-config , libgbinder }: @@ -23,7 +23,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython + cython_0 pkg-config ]; diff --git a/pkgs/development/python-modules/gevent/default.nix b/pkgs/development/python-modules/gevent/default.nix index d6264794a505..ca3a7c1ff9a5 100644 --- a/pkgs/development/python-modules/gevent/default.nix +++ b/pkgs/development/python-modules/gevent/default.nix @@ -5,7 +5,7 @@ , python , libev , cffi -, cython_3 +, cython , greenlet , importlib-metadata , setuptools @@ -34,7 +34,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools wheel ] ++ lib.optionals (!isPyPy) [ diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix index a11578f832ba..4afd562e033d 100644 --- a/pkgs/development/python-modules/h5py/default.nix +++ b/pkgs/development/python-modules/h5py/default.nix @@ -7,7 +7,7 @@ , wheel , numpy , hdf5 -, cython +, cython_0 , pkgconfig , mpi4py ? null , openssh @@ -50,7 +50,7 @@ in buildPythonPackage rec { preBuild = lib.optionalString mpiSupport "export CC=${lib.getDev mpi}/bin/mpicc"; nativeBuildInputs = [ - cython + cython_0 oldest-supported-numpy pkgconfig setuptools diff --git a/pkgs/development/python-modules/hidapi/default.nix b/pkgs/development/python-modules/hidapi/default.nix index 9b4e76186f26..84f62c239c8b 100644 --- a/pkgs/development/python-modules/hidapi/default.nix +++ b/pkgs/development/python-modules/hidapi/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , fetchPypi , xcbuild -, cython +, cython_0 , libusb1 , udev , darwin @@ -21,7 +21,7 @@ buildPythonPackage rec { nativeBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ]; - propagatedBuildInputs = [ cython ] + propagatedBuildInputs = [ cython_0 ] ++ lib.optionals stdenv.isLinux [ libusb1 udev ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]); diff --git a/pkgs/development/python-modules/in-n-out/default.nix b/pkgs/development/python-modules/in-n-out/default.nix index 39c7a3f7de88..ffd68b29b90d 100644 --- a/pkgs/development/python-modules/in-n-out/default.nix +++ b/pkgs/development/python-modules/in-n-out/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , fetchPypi , future , pytestCheckHook @@ -25,7 +25,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython hatchling hatch-vcs ]; diff --git a/pkgs/development/python-modules/kivy/default.nix b/pkgs/development/python-modules/kivy/default.nix index d9b8e23fe416..63c918f8b9fd 100644 --- a/pkgs/development/python-modules/kivy/default.nix +++ b/pkgs/development/python-modules/kivy/default.nix @@ -1,6 +1,6 @@ { lib, stdenv , buildPythonPackage, fetchFromGitHub, fetchpatch -, pkg-config, cython, docutils +, pkg-config, cython_0, docutils , kivy-garden , mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer , Accelerate, ApplicationServices, AVFoundation, libcxx @@ -31,7 +31,7 @@ buildPythonPackage rec { nativeBuildInputs = [ pkg-config - cython + cython_0 docutils ]; diff --git a/pkgs/development/python-modules/levenshtein/default.nix b/pkgs/development/python-modules/levenshtein/default.nix index 9b4d9caaf699..453ec1be9052 100644 --- a/pkgs/development/python-modules/levenshtein/default.nix +++ b/pkgs/development/python-modules/levenshtein/default.nix @@ -2,7 +2,7 @@ , stdenv , buildPythonPackage , cmake -, cython_3 +, cython , fetchFromGitHub , pytestCheckHook , pythonOlder @@ -28,7 +28,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython_3 + cython scikit-build ]; diff --git a/pkgs/development/python-modules/libgpuarray/default.nix b/pkgs/development/python-modules/libgpuarray/default.nix index 710ef3dd1398..d186233ccdc4 100644 --- a/pkgs/development/python-modules/libgpuarray/default.nix +++ b/pkgs/development/python-modules/libgpuarray/default.nix @@ -4,7 +4,7 @@ , buildPythonPackage , fetchFromGitHub , cmake -, cython +, cython_0 , numpy , six , nose @@ -67,13 +67,13 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake + cython_0 ] ++ lib.optionals cudaSupport [ addOpenGLRunpath ]; buildInputs = [ - cython nose ]; diff --git a/pkgs/development/python-modules/line-profiler/default.nix b/pkgs/development/python-modules/line-profiler/default.nix index d50b3fa36f49..f8a3c5378bb0 100644 --- a/pkgs/development/python-modules/line-profiler/default.nix +++ b/pkgs/development/python-modules/line-profiler/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, cython_3 +, cython , isPyPy , ipython , scikit-build @@ -25,7 +25,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython cmake scikit-build ]; diff --git a/pkgs/development/python-modules/llfuse/default.nix b/pkgs/development/python-modules/llfuse/default.nix index 85c6d0fb50fd..5e1ce47bdc67 100644 --- a/pkgs/development/python-modules/llfuse/default.nix +++ b/pkgs/development/python-modules/llfuse/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, cython_3 +, cython , fuse , pkg-config , pytestCheckHook @@ -27,7 +27,7 @@ buildPythonPackage rec { hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI="; }; - nativeBuildInputs = [ cython_3 pkg-config setuptools ]; + nativeBuildInputs = [ cython pkg-config setuptools ]; buildInputs = [ fuse ]; diff --git a/pkgs/development/python-modules/lupa/default.nix b/pkgs/development/python-modules/lupa/default.nix index c79f0de9dd89..4b879a90966f 100644 --- a/pkgs/development/python-modules/lupa/default.nix +++ b/pkgs/development/python-modules/lupa/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , fetchPypi , pythonOlder , setuptools @@ -19,7 +19,7 @@ buildPythonPackage rec { }; build-system = [ - cython_3 + cython setuptools ]; diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix index e6d7234a59ce..d1d7036eda2e 100644 --- a/pkgs/development/python-modules/lxml/default.nix +++ b/pkgs/development/python-modules/lxml/default.nix @@ -4,7 +4,7 @@ , fetchFromGitHub # build-system -, cython_3 +, cython , setuptools # native dependencies @@ -30,7 +30,7 @@ buildPythonPackage rec { nativeBuildInputs = [ libxml2.dev libxslt.dev - cython_3 + cython setuptools ] ++ lib.optionals stdenv.isDarwin [ xcodebuild diff --git a/pkgs/development/python-modules/mdtraj/default.nix b/pkgs/development/python-modules/mdtraj/default.nix index ad20cdbf0671..971688348a1d 100644 --- a/pkgs/development/python-modules/mdtraj/default.nix +++ b/pkgs/development/python-modules/mdtraj/default.nix @@ -5,7 +5,7 @@ , fetchpatch , llvmPackages , zlib -, cython +, cython_0 , oldest-supported-numpy , setuptools , wheel @@ -42,7 +42,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython + cython_0 oldest-supported-numpy setuptools wheel diff --git a/pkgs/development/python-modules/memory-allocator/default.nix b/pkgs/development/python-modules/memory-allocator/default.nix index 90c75d0bb7fe..bb9b7dd47509 100644 --- a/pkgs/development/python-modules/memory-allocator/default.nix +++ b/pkgs/development/python-modules/memory-allocator/default.nix @@ -1,7 +1,7 @@ { lib , fetchPypi , buildPythonPackage -, cython_3 +, cython }: buildPythonPackage rec { @@ -15,7 +15,7 @@ buildPythonPackage rec { hash = "sha256-E4BcKuHAG3SJ+rXo6sk2FmK08sAkEuNlLuzkj/aVMWI="; }; - propagatedBuildInputs = [ cython_3 ]; + propagatedBuildInputs = [ cython ]; pythonImportsCheck = [ "memory_allocator" ]; diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index 5e98ea185700..5ee682994575 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -3,7 +3,7 @@ , fetchFromGitHub # build-system -, cython_3 +, cython # optional , numpy @@ -27,7 +27,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython ]; postPatch = '' diff --git a/pkgs/development/python-modules/nipy/default.nix b/pkgs/development/python-modules/nipy/default.nix index 1a1813ebb8af..a5807ae224d5 100644 --- a/pkgs/development/python-modules/nipy/default.nix +++ b/pkgs/development/python-modules/nipy/default.nix @@ -3,7 +3,7 @@ , fetchPypi # build-system -, cython_3 +, cython , meson-python , ninja , setuptools @@ -37,7 +37,7 @@ buildPythonPackage rec { ''; build-system = [ - cython_3 + cython meson-python setuptools ninja diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index b3c80a49798c..7aee840ab9d3 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -8,7 +8,7 @@ , writeTextFile # build-system -, cython_3 +, cython , gfortran , meson-python , mesonEmulatorHook @@ -91,7 +91,7 @@ in buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython gfortran meson-python pkg-config diff --git a/pkgs/development/python-modules/openstep-plist/default.nix b/pkgs/development/python-modules/openstep-plist/default.nix index 2aa81629c623..fc37d86016f6 100644 --- a/pkgs/development/python-modules/openstep-plist/default.nix +++ b/pkgs/development/python-modules/openstep-plist/default.nix @@ -3,8 +3,7 @@ , fetchPypi , setuptools-scm , pytestCheckHook -, cython -, pythonImportsCheckHook +, cython_0 }: buildPythonPackage rec { @@ -19,7 +18,7 @@ buildPythonPackage rec { extension = "zip"; }; - nativeBuildInputs = [ setuptools-scm cython ]; + nativeBuildInputs = [ setuptools-scm cython_0 ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "openstep_plist" ]; diff --git a/pkgs/development/python-modules/oracledb/default.nix b/pkgs/development/python-modules/oracledb/default.nix index da45e616b42c..60055f7e6182 100644 --- a/pkgs/development/python-modules/oracledb/default.nix +++ b/pkgs/development/python-modules/oracledb/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , cryptography -, cython_3 +, cython , fetchPypi , pythonOlder , setuptools @@ -21,7 +21,7 @@ buildPythonPackage rec { }; build-system = [ - cython_3 + cython setuptools wheel ]; diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index 6cb46d6777c9..c42472682a7e 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -6,7 +6,7 @@ , pythonOlder # build-system -, cython_3 +, cython , meson-python , meson , oldest-supported-numpy @@ -84,7 +84,7 @@ let pandas = buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython meson-python meson numpy diff --git a/pkgs/development/python-modules/pplpy/default.nix b/pkgs/development/python-modules/pplpy/default.nix index c3a1f8192acf..ec9bddb5ec99 100644 --- a/pkgs/development/python-modules/pplpy/default.nix +++ b/pkgs/development/python-modules/pplpy/default.nix @@ -5,7 +5,7 @@ , mpfr , libmpc , ppl -, cython_3 +, cython , cysignals , gmpy2 , sphinx @@ -33,7 +33,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - cython_3 + cython cysignals gmpy2 ]; diff --git a/pkgs/development/python-modules/primecountpy/default.nix b/pkgs/development/python-modules/primecountpy/default.nix index 6653a65671b3..463a0cf50be6 100644 --- a/pkgs/development/python-modules/primecountpy/default.nix +++ b/pkgs/development/python-modules/primecountpy/default.nix @@ -2,7 +2,7 @@ , fetchPypi , buildPythonPackage , primecount -, cython_3 +, cython , cysignals }: @@ -18,7 +18,7 @@ buildPythonPackage rec { buildInputs = [ primecount ]; - propagatedBuildInputs = [ cython_3 cysignals ]; + propagatedBuildInputs = [ cython cysignals ]; # depends on pytest-cython for "pytest --doctest-cython" doCheck = false; diff --git a/pkgs/development/python-modules/psycopg/default.nix b/pkgs/development/python-modules/psycopg/default.nix index 84161d1a8781..65d9e3523620 100644 --- a/pkgs/development/python-modules/psycopg/default.nix +++ b/pkgs/development/python-modules/psycopg/default.nix @@ -15,7 +15,7 @@ , typing-extensions # psycopg-c -, cython_3 +, cython , tomli # docs @@ -72,7 +72,7 @@ let ''; nativeBuildInputs = [ - cython_3 + cython postgresql setuptools tomli diff --git a/pkgs/development/python-modules/py-libzfs/default.nix b/pkgs/development/python-modules/py-libzfs/default.nix index d22e931cd937..661a79dd6485 100644 --- a/pkgs/development/python-modules/py-libzfs/default.nix +++ b/pkgs/development/python-modules/py-libzfs/default.nix @@ -2,7 +2,7 @@ , stdenv , buildPythonPackage , fetchFromGitHub -, cython +, cython_0 , zfs }: @@ -18,7 +18,7 @@ buildPythonPackage rec { hash = "sha256-vBLbjP1gQEQNsTLc2W6uRzCFHQXZp+jGiwE0Pe8VTuw="; }; - nativeBuildInputs = [ cython ]; + nativeBuildInputs = [ cython_0 ]; buildInputs = [ zfs ]; # Passing CFLAGS in configureFlags does not work, see https://github.com/truenas/py-libzfs/issues/107 diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index 7c19bdefd4f6..da50d8f45735 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -8,7 +8,7 @@ , cffi , cloudpickle , cmake -, cython +, cython_0 , fsspec , hypothesis , numpy @@ -45,7 +45,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython + cython_0 pkg-config setuptools setuptools-scm diff --git a/pkgs/development/python-modules/pydantic/1.nix b/pkgs/development/python-modules/pydantic/1.nix index ffe38546148e..6078acc356ce 100644 --- a/pkgs/development/python-modules/pydantic/1.nix +++ b/pkgs/development/python-modules/pydantic/1.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython +, cython_0 , email-validator , fetchFromGitHub , pytest-mock @@ -29,7 +29,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools - cython + cython_0 ]; buildInputs = lib.optionals (pythonOlder "3.9") [ diff --git a/pkgs/development/python-modules/pyfftw/default.nix b/pkgs/development/python-modules/pyfftw/default.nix index e47184f9b15c..746377c3c131 100644 --- a/pkgs/development/python-modules/pyfftw/default.nix +++ b/pkgs/development/python-modules/pyfftw/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchPypi -, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }: +, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython_0, dask }: buildPythonPackage rec { version = "0.13.1"; @@ -17,7 +17,7 @@ buildPythonPackage rec { buildInputs = [ fftw fftwFloat fftwLongDouble]; - propagatedBuildInputs = [ numpy scipy cython dask ]; + propagatedBuildInputs = [ numpy scipy cython_0 dask ]; # Tests cannot import pyfftw. pyfftw works fine though. doCheck = false; diff --git a/pkgs/development/python-modules/pyfuse3/default.nix b/pkgs/development/python-modules/pyfuse3/default.nix index d33938905753..851b37bbfb9c 100644 --- a/pkgs/development/python-modules/pyfuse3/default.nix +++ b/pkgs/development/python-modules/pyfuse3/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, cython_3 +, cython , pkg-config , setuptools , fuse3 @@ -34,7 +34,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython pkg-config setuptools ]; diff --git a/pkgs/development/python-modules/pygame-sdl2/default.nix b/pkgs/development/python-modules/pygame-sdl2/default.nix index 93eea02a9041..0201c9cb4a8a 100644 --- a/pkgs/development/python-modules/pygame-sdl2/default.nix +++ b/pkgs/development/python-modules/pygame-sdl2/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchurl, isPy27, renpy -, cython, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }: +, cython_0, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }: buildPythonPackage rec { pname = "pygame-sdl2"; @@ -24,7 +24,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - SDL2.dev cython + SDL2.dev cython_0 ]; buildInputs = [ diff --git a/pkgs/development/python-modules/pygame/default.nix b/pkgs/development/python-modules/pygame/default.nix index 6bc41339d927..a219804f34b8 100644 --- a/pkgs/development/python-modules/pygame/default.nix +++ b/pkgs/development/python-modules/pygame/default.nix @@ -6,7 +6,7 @@ , pythonOlder # build-system -, cython_3 +, cython , setuptools , pkg-config @@ -70,7 +70,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython pkg-config SDL2 setuptools diff --git a/pkgs/development/python-modules/pygeos/default.nix b/pkgs/development/python-modules/pygeos/default.nix index 657da35b4ad3..298d4bdff7fe 100644 --- a/pkgs/development/python-modules/pygeos/default.nix +++ b/pkgs/development/python-modules/pygeos/default.nix @@ -4,7 +4,7 @@ , python , geos_3_11 , pytestCheckHook -, cython +, cython_0 , numpy }: @@ -20,7 +20,7 @@ buildPythonPackage rec { nativeBuildInputs = [ geos_3_11 # for geos-config - cython + cython_0 ]; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/pykdtree/default.nix b/pkgs/development/python-modules/pykdtree/default.nix index b81bba27f1a4..b720f5b838b3 100644 --- a/pkgs/development/python-modules/pykdtree/default.nix +++ b/pkgs/development/python-modules/pykdtree/default.nix @@ -3,7 +3,7 @@ , fetchPypi # build-system -, cython_3 +, cython , numpy , setuptools @@ -25,7 +25,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython numpy setuptools ]; diff --git a/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix b/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix index 3872fa6b2417..9040f955efb4 100644 --- a/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix +++ b/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix @@ -3,7 +3,7 @@ , fetchFromGitHub , pythonOlder , pytestCheckHook -, cython_3 +, cython , poetry-core , setuptools , numpy @@ -25,7 +25,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools ]; diff --git a/pkgs/development/python-modules/pyliblo/default.nix b/pkgs/development/python-modules/pyliblo/default.nix index db962d165f8b..0735fdcb7216 100644 --- a/pkgs/development/python-modules/pyliblo/default.nix +++ b/pkgs/development/python-modules/pyliblo/default.nix @@ -4,7 +4,7 @@ , isPyPy , pythonAtLeast , liblo -, cython +, cython_0 }: buildPythonPackage rec { @@ -25,7 +25,9 @@ buildPythonPackage rec { }) ]; - buildInputs = [ liblo cython ]; + build-system = [ cython_0 ]; + + buildInputs = [ liblo ]; meta = with lib; { homepage = "https://das.nasophon.de/pyliblo/"; diff --git a/pkgs/development/python-modules/pyopengl-accelerate/default.nix b/pkgs/development/python-modules/pyopengl-accelerate/default.nix index f85e825f2645..4dc8803fa037 100644 --- a/pkgs/development/python-modules/pyopengl-accelerate/default.nix +++ b/pkgs/development/python-modules/pyopengl-accelerate/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonAtLeast , fetchPypi -, cython_3 +, cython , numpy , setuptools , wheel @@ -20,7 +20,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython numpy setuptools wheel diff --git a/pkgs/development/python-modules/pyreadstat/default.nix b/pkgs/development/python-modules/pyreadstat/default.nix index 1a575db7c2e2..b8eaa04b1a93 100644 --- a/pkgs/development/python-modules/pyreadstat/default.nix +++ b/pkgs/development/python-modules/pyreadstat/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , buildPythonPackage -, cython_3 +, cython , fetchFromGitHub , libiconv , pandas @@ -26,7 +26,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython ]; buildInputs = [ diff --git a/pkgs/development/python-modules/pyrevolve/default.nix b/pkgs/development/python-modules/pyrevolve/default.nix index d60b2164051c..48eed5323214 100644 --- a/pkgs/development/python-modules/pyrevolve/default.nix +++ b/pkgs/development/python-modules/pyrevolve/default.nix @@ -4,7 +4,7 @@ , contexttimer , setuptools , versioneer -, cython +, cython_0 , numpy , pytestCheckHook , pythonOlder @@ -30,7 +30,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython + cython_0 setuptools versioneer ]; diff --git a/pkgs/development/python-modules/pysam/default.nix b/pkgs/development/python-modules/pysam/default.nix index d2887eda5847..269b2249887a 100644 --- a/pkgs/development/python-modules/pysam/default.nix +++ b/pkgs/development/python-modules/pysam/default.nix @@ -4,7 +4,7 @@ , bzip2 , bcftools , curl -, cython_3 +, cython , htslib , libdeflate , xz @@ -30,7 +30,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython samtools setuptools ]; diff --git a/pkgs/development/python-modules/python-box/default.nix b/pkgs/development/python-modules/python-box/default.nix index 3145debc745c..9a7350c34eb8 100644 --- a/pkgs/development/python-modules/python-box/default.nix +++ b/pkgs/development/python-modules/python-box/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, cython_3 +, cython , fetchFromGitHub , msgpack , poetry-core @@ -29,7 +29,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools ]; diff --git a/pkgs/development/python-modules/python-openems/default.nix b/pkgs/development/python-modules/python-openems/default.nix index 8da6b87f8ba5..c4b07b18cafa 100644 --- a/pkgs/development/python-modules/python-openems/default.nix +++ b/pkgs/development/python-modules/python-openems/default.nix @@ -1,7 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitHub -, cython +, cython_0 , openems , csxcad , boost @@ -20,7 +19,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/python"; nativeBuildInputs = [ - cython + cython_0 boost ]; diff --git a/pkgs/development/python-modules/python-rtmidi/default.nix b/pkgs/development/python-modules/python-rtmidi/default.nix index 6265d9500810..9f073fd0a6ae 100644 --- a/pkgs/development/python-modules/python-rtmidi/default.nix +++ b/pkgs/development/python-modules/python-rtmidi/default.nix @@ -7,7 +7,7 @@ , CoreMIDI , CoreServices , Foundation -, cython_3 +, cython , fetchPypi , flake8 , libjack2 @@ -33,7 +33,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython meson-python ninja pkg-config diff --git a/pkgs/development/python-modules/pyyaml/default.nix b/pkgs/development/python-modules/pyyaml/default.nix index a7270958387d..ce562e48ce54 100644 --- a/pkgs/development/python-modules/pyyaml/default.nix +++ b/pkgs/development/python-modules/pyyaml/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, cython +, cython_0 , setuptools , libyaml , python @@ -24,7 +24,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython + cython_0 setuptools ]; diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix index 0493381718c1..51429d535df4 100644 --- a/pkgs/development/python-modules/pyzmq/default.nix +++ b/pkgs/development/python-modules/pyzmq/default.nix @@ -4,7 +4,7 @@ , isPyPy # build-system -, cython_3 +, cython , setuptools , setuptools-scm , packaging @@ -40,7 +40,7 @@ buildPythonPackage rec { ] ++ (if isPyPy then [ cffi ] else [ - cython_3 + cython ]); buildInputs = [ diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index 6c57c8f3c076..d30759869cc8 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , cvxopt , cvxpy -, cython +, cython_0 , fetchFromGitHub , ipython , matplotlib @@ -31,7 +31,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython + cython_0 ]; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/rapidfuzz/default.nix b/pkgs/development/python-modules/rapidfuzz/default.nix index 5a1a6296b48d..13c04b2f1dc0 100644 --- a/pkgs/development/python-modules/rapidfuzz/default.nix +++ b/pkgs/development/python-modules/rapidfuzz/default.nix @@ -4,7 +4,7 @@ , pythonOlder , fetchFromGitHub , cmake -, cython_3 +, cython , ninja , scikit-build , setuptools @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython_3 + cython ninja scikit-build setuptools diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix index eef18524c217..b919a3afe062 100644 --- a/pkgs/development/python-modules/rasterio/default.nix +++ b/pkgs/development/python-modules/rasterio/default.nix @@ -13,7 +13,7 @@ , click , click-plugins , cligj -, cython_3 +, cython , gdal , hypothesis , ipython @@ -55,7 +55,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython_3 + cython gdal numpy oldest-supported-numpy diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index bbab3a462dbb..ff6e3070cf7e 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -4,7 +4,7 @@ , astropy-healpix , buildPythonPackage , cloudpickle -, cython_3 +, cython , dask , fetchPypi , fsspec @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeBuildInputs = [ astropy-extension-helpers - cython_3 + cython numpy oldest-supported-numpy setuptools-scm diff --git a/pkgs/development/python-modules/rtmidi-python/default.nix b/pkgs/development/python-modules/rtmidi-python/default.nix index 33f6ba217882..462207a2fea4 100644 --- a/pkgs/development/python-modules/rtmidi-python/default.nix +++ b/pkgs/development/python-modules/rtmidi-python/default.nix @@ -2,7 +2,7 @@ , stdenv , buildPythonPackage , fetchPypi -, cython +, cython_0 , alsa-lib , CoreAudio , CoreMIDI @@ -23,7 +23,7 @@ buildPythonPackage rec { rm rtmidi_python.cpp ''; - nativeBuildInputs = [ cython ]; + nativeBuildInputs = [ cython_0 ]; buildInputs = lib.optionals stdenv.isLinux [ alsa-lib ] ++ lib.optionals stdenv.isDarwin [ diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index b6c703d7870d..7ffe72261f44 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -4,7 +4,7 @@ , fetchPypi # build-system -, cython_3 +, cython , gfortran , numpy , scipy @@ -46,7 +46,7 @@ buildPythonPackage rec { ]; build-system = [ - cython_3 + cython numpy scipy setuptools diff --git a/pkgs/development/python-modules/seabreeze/default.nix b/pkgs/development/python-modules/seabreeze/default.nix index 24aa665bccfc..119e36d663ef 100644 --- a/pkgs/development/python-modules/seabreeze/default.nix +++ b/pkgs/development/python-modules/seabreeze/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage # build-system -, cython_3 +, cython , git , pkgconfig , setuptools @@ -40,7 +40,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython git pkgconfig setuptools diff --git a/pkgs/development/python-modules/sfepy/default.nix b/pkgs/development/python-modules/sfepy/default.nix index 676c2510f6b9..8e2c18fb1e62 100644 --- a/pkgs/development/python-modules/sfepy/default.nix +++ b/pkgs/development/python-modules/sfepy/default.nix @@ -1,5 +1,4 @@ -{ stdenv -, lib +{ lib , buildPythonPackage , fetchFromGitHub , numpy @@ -7,7 +6,7 @@ , matplotlib , pyparsing , tables -, cython +, cython_0 , python , sympy , meshio @@ -34,7 +33,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy - cython + cython_0 scipy matplotlib pyparsing diff --git a/pkgs/development/python-modules/shapely/1.8.nix b/pkgs/development/python-modules/shapely/1.8.nix index 0e1c3135ab99..4382ba93ec5e 100644 --- a/pkgs/development/python-modules/shapely/1.8.nix +++ b/pkgs/development/python-modules/shapely/1.8.nix @@ -6,7 +6,7 @@ , pythonOlder , substituteAll -, cython +, cython_0 , geos_3_11 , numpy , oldest-supported-numpy @@ -44,7 +44,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython + cython_0 geos_3_11 # for geos-config oldest-supported-numpy setuptools diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index 3db9ce9e2af6..07bdd27ac020 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -5,7 +5,7 @@ , pytestCheckHook , pythonOlder -, cython +, cython_0 , geos , numpy , oldest-supported-numpy @@ -26,7 +26,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython + cython_0 geos # for geos-config oldest-supported-numpy setuptools diff --git a/pkgs/development/python-modules/soxr/default.nix b/pkgs/development/python-modules/soxr/default.nix index b000900d3a7b..7cd1cc0af6bc 100644 --- a/pkgs/development/python-modules/soxr/default.nix +++ b/pkgs/development/python-modules/soxr/default.nix @@ -3,7 +3,7 @@ , fetchFromGitHub # build-system -, cython_3 +, cython , numpy , oldest-supported-numpy , setuptools @@ -36,7 +36,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython gnutar numpy oldest-supported-numpy diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index 56c626d4591d..ace17d1fc667 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -27,7 +27,6 @@ , sphinxcontrib-websupport # check phase -, cython , filelock , html5lib , pytestCheckHook @@ -83,7 +82,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; nativeCheckInputs = [ - cython filelock html5lib pytestCheckHook @@ -108,6 +106,8 @@ buildPythonPackage rec { "test_class_alias_having_doccomment" "test_class_alias_for_imported_object_having_doccomment" "test_decorators" + # requires cython_0, but fails miserably on 3.11 + "test_cython" ] ++ lib.optionals isPyPy [ # PyPy has not __builtins__ which get asserted # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous @@ -117,7 +117,6 @@ buildPythonPackage rec { "test_autodoc_inherited_members_None" "test_automethod_for_builtin" "test_builtin_function" - "test_cython" "test_isattributedescriptor" "test_methoddescriptor" "test_partialfunction" diff --git a/pkgs/development/python-modules/srsly/default.nix b/pkgs/development/python-modules/srsly/default.nix index c3549ca3df02..be1871c0dd14 100644 --- a/pkgs/development/python-modules/srsly/default.nix +++ b/pkgs/development/python-modules/srsly/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , pythonOlder -, cython +, cython_0 , catalogue , mock , numpy @@ -26,7 +26,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython + cython_0 setuptools ]; diff --git a/pkgs/development/python-modules/textnets/default.nix b/pkgs/development/python-modules/textnets/default.nix index 2ba5ff701919..399bc5288022 100644 --- a/pkgs/development/python-modules/textnets/default.nix +++ b/pkgs/development/python-modules/textnets/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , cairocffi -, cython_3 +, cython , fetchPypi , igraph , leidenalg @@ -34,7 +34,7 @@ buildPythonPackage rec { nativeBuildInputs = [ pythonRelaxDepsHook - cython_3 + cython poetry-core setuptools ]; diff --git a/pkgs/development/python-modules/thinc/default.nix b/pkgs/development/python-modules/thinc/default.nix index db5398550689..b62c408a77fb 100644 --- a/pkgs/development/python-modules/thinc/default.nix +++ b/pkgs/development/python-modules/thinc/default.nix @@ -9,7 +9,7 @@ , CoreGraphics , CoreVideo , cymem -, cython +, cython_0 , fetchPypi , hypothesis , mock @@ -50,7 +50,7 @@ buildPythonPackage rec { ]; buildInputs = [ - cython + cython_0 ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreFoundation diff --git a/pkgs/development/python-modules/uamqp/default.nix b/pkgs/development/python-modules/uamqp/default.nix index 334a4ce20e4b..2881c8ef0d6b 100644 --- a/pkgs/development/python-modules/uamqp/default.nix +++ b/pkgs/development/python-modules/uamqp/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , fetchFromGitHub , fetchpatch -, cython +, cython_0 , certifi , CFNetwork , cmake @@ -68,7 +68,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython + cython_0 ]; buildInputs = [ diff --git a/pkgs/development/python-modules/uharfbuzz/default.nix b/pkgs/development/python-modules/uharfbuzz/default.nix index 15c0d79984b2..b4ea16f1abd5 100644 --- a/pkgs/development/python-modules/uharfbuzz/default.nix +++ b/pkgs/development/python-modules/uharfbuzz/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder -, cython_3 +, cython , setuptools , setuptools-scm , pytestCheckHook @@ -26,7 +26,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools setuptools-scm ]; diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index 9ee7fec91944..7aa551086869 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -5,7 +5,7 @@ , fetchPypi # build-system -, cython +, cython_0 , setuptools # native dependencies @@ -33,7 +33,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython + cython_0 setuptools ]; diff --git a/pkgs/development/python-modules/vispy/default.nix b/pkgs/development/python-modules/vispy/default.nix index 21d8c68e7438..e25133dfda5b 100644 --- a/pkgs/development/python-modules/vispy/default.nix +++ b/pkgs/development/python-modules/vispy/default.nix @@ -3,7 +3,7 @@ , buildPythonPackage , substituteAll , fetchPypi -, cython_3 +, cython , fontconfig , freetype-py , hsluv @@ -39,7 +39,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython_3 + cython oldest-supported-numpy setuptools setuptools-scm diff --git a/pkgs/development/python-modules/wikipedia2vec/default.nix b/pkgs/development/python-modules/wikipedia2vec/default.nix index 12f7ef753a59..2e379b9ccb1e 100644 --- a/pkgs/development/python-modules/wikipedia2vec/default.nix +++ b/pkgs/development/python-modules/wikipedia2vec/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , click -, cython_3 +, cython , fetchFromGitHub , jieba , joblib @@ -30,13 +30,13 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - cython_3 + cython setuptools ]; propagatedBuildInputs = [ click - cython_3 + cython jieba joblib lmdb diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index 6b8e17d2ed19..a0c75cd23856 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , pythonOlder -, cython_3 +, cython , expandvars , setuptools , idna @@ -30,7 +30,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython expandvars setuptools ]; diff --git a/pkgs/development/python-modules/zeroconf/default.nix b/pkgs/development/python-modules/zeroconf/default.nix index c721259efa43..c592ca1d68cc 100644 --- a/pkgs/development/python-modules/zeroconf/default.nix +++ b/pkgs/development/python-modules/zeroconf/default.nix @@ -1,5 +1,5 @@ { lib -, cython_3 +, cython , async-timeout , buildPythonPackage , fetchFromGitHub @@ -32,7 +32,7 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ - cython_3 + cython poetry-core setuptools ]; diff --git a/pkgs/development/tools/steamos-devkit/default.nix b/pkgs/development/tools/steamos-devkit/default.nix index 4b2cabac6396..894bfff77da8 100644 --- a/pkgs/development/tools/steamos-devkit/default.nix +++ b/pkgs/development/tools/steamos-devkit/default.nix @@ -23,7 +23,7 @@ let }; nativeBuildInputs = with python3.pkgs; [ - cython + cython_0 pkg-config SDL2 ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 797b2ecae5f6..4e64f23b43f0 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -257,7 +257,7 @@ let }; nativeBuildInputs = with self; [ - cython_3 + cython setuptools libxml2.dev libxslt.dev diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4bca4de4f593..a7aa3534f3c3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2613,14 +2613,7 @@ self: super: with self; { cython = callPackage ../development/python-modules/cython { }; - cython_3 = self.cython.overridePythonAttrs (old: rec { - version = "3.0.9"; - src = old.src.override { - inherit version; - hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM="; - }; - patches = [ ]; - }); + cython_0 = callPackage ../development/python-modules/cython/0.nix { }; cython-test-exception-raiser = callPackage ../development/python-modules/cython-test-exception-raiser { };