python310Packages.pyzmq: 22.3.0 -> 23.0.0

main
Fabian Affolter 2 years ago committed by Jonathan Ringer
parent b31b5f18c7
commit 774f693066
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 1
      pkgs/development/python-modules/pysqueezebox/default.nix
  2. 60
      pkgs/development/python-modules/pyzmq/default.nix

@ -46,3 +46,4 @@ buildPythonPackage rec {
maintainers = with maintainers; [ nyanloutre ];
};
}

@ -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; [ ];
};
}

Loading…
Cancel
Save