diff options
Diffstat (limited to 'pkgs/development/python-modules/pyzmq/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyzmq/default.nix | 85 |
1 files changed, 41 insertions, 44 deletions
diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix index 51429d535df4..e47570dd9b06 100644 --- a/pkgs/development/python-modules/pyzmq/default.nix +++ b/pkgs/development/python-modules/pyzmq/default.nix @@ -1,55 +1,55 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, -# build-system -, cython -, setuptools -, setuptools-scm -, packaging -, cffi + # build-system + cffi, + cython, + cmake, + ninja, + packaging, + pathspec, + scikit-build-core, -# dependencies - -, py -, pytestCheckHook -, python -, pythonOlder -, tornado -, zeromq -, pytest-asyncio + # checks + pytestCheckHook, + pythonOlder, + tornado, + libsodium, + zeromq, + pytest-asyncio, }: buildPythonPackage rec { pname = "pyzmq"; - version = "25.1.2"; + version = "26.2.0"; pyproject = true; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-k/GqMR6LuRLjTwBM8YZAek6Q7sTw7MDv0mBWv37aAiY="; + hash = "sha256-BwZywlhYHI5PZAtRWSl1gKmXSwJgQ71KsEcL6e0yTx8="; }; - nativeBuildInputs = [ - setuptools - setuptools-scm + build-system = [ + cmake + ninja packaging - ] ++ (if isPyPy then [ - cffi - ] else [ - cython - ]); + pathspec + scikit-build-core + ] ++ (if isPyPy then [ cffi ] else [ cython ]); + + dontUseCmakeConfigure = true; buildInputs = [ + libsodium zeromq ]; - propagatedBuildInputs = lib.optionals isPyPy [ - cffi - ]; + dependencies = lib.optionals isPyPy [ cffi ]; nativeCheckInputs = [ pytestCheckHook @@ -57,17 +57,11 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "zmq" - ]; + pythonImportsCheck = [ "zmq" ]; - pytestFlagsArray = [ - "$out/${python.sitePackages}/zmq/tests/" # Folder with tests - # pytest.ini is missing in pypi's sdist - # https://github.com/zeromq/pyzmq/issues/1853#issuecomment-1592731986 - "--asyncio-mode auto" - "--ignore=$out/lib/python3.12/site-packages/zmq/tests/test_mypy.py" - ]; + preCheck = '' + rm -r zmq + ''; disabledTests = [ # Tests hang @@ -89,7 +83,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python bindings for ØMQ"; homepage = "https://pyzmq.readthedocs.io/"; - license = with licenses; [ bsd3 /* or */ lgpl3Only ]; - maintainers = with maintainers; [ ]; + license = with licenses; [ + bsd3 # or + lgpl3Only + ]; + maintainers = [ ]; }; } |