From 774f6930664a35c3ff451c067f1c28d79332001d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 May 2022 11:14:36 +0200 Subject: [PATCH] python310Packages.pyzmq: 22.3.0 -> 23.0.0 --- .../python-modules/pysqueezebox/default.nix | 1 + .../python-modules/pyzmq/default.nix | 60 +++++++++++++------ 2 files changed, 42 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/pysqueezebox/default.nix b/pkgs/development/python-modules/pysqueezebox/default.nix index 67344d8a5744..b3504c9959b5 100644 --- a/pkgs/development/python-modules/pysqueezebox/default.nix +++ b/pkgs/development/python-modules/pysqueezebox/default.nix @@ -46,3 +46,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ nyanloutre ]; }; } + diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix index 60fcce9442a8..62de8e72b4c4 100644 --- a/pkgs/development/python-modules/pyzmq/default.nix +++ b/pkgs/development/python-modules/pyzmq/default.nix @@ -1,46 +1,68 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchPypi +, py , pytestCheckHook +, python +, pythonOlder , tornado , zeromq -, py -, python }: buildPythonPackage rec { pname = "pyzmq"; - version = "22.3.0"; + version = "23.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c"; + hash = "sha256-pF9cBHfRLfBe8uKSK0m3wK6dD0/5trsNZmVY3w7zcSI="; }; + buildInputs = [ + zeromq + ]; + + propagatedBuildInputs = [ + py + ]; + checkInputs = [ pytestCheckHook tornado ]; - buildInputs = [ zeromq ]; - propagatedBuildInputs = [ py ]; - # failing tests - disabledTests = [ - "test_socket" # hangs - "test_current" - "test_instance" - "test_callable_check" - "test_on_recv_basic" - "test_on_recv_wake" - "test_monitor" # https://github.com/zeromq/pyzmq/issues/1272 - "test_cython" - "test_asyncio" # hangs - "test_mockable" # fails + pythonImportsCheck = [ + "zmq" ]; pytestFlagsArray = [ "$out/${python.sitePackages}/zmq/tests/" # Folder with tests ]; + disabledTests = [ + # Tests hang + "test_socket" + "test_monitor" + # https://github.com/zeromq/pyzmq/issues/1272 + "test_cython" + # Test fails + "test_mockable" + # Issues with the sandbox + "TestFutureSocket" + "TestIOLoop" + "TestPubLog" + ]; + # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; + + meta = with lib; { + description = "Python bindings for ØMQ"; + homepage = "https://pyzmq.readthedocs.io/"; + license = with licenses; [ bsd3 /* or */ lgpl3Only ]; + maintainers = with maintainers; [ ]; + }; }