1{ buildPythonPackage
2, fetchPypi
3, pytestCheckHook
4, tornado
5, zeromq
6, py
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "pyzmq";
12 version = "22.0.3";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "f7f63ce127980d40f3e6a5fdb87abf17ce1a7c2bd8bf2c7560e1bbce8ab1f92d";
17 };
18
19 checkInputs = [
20 pytestCheckHook
21 tornado
22 ];
23 buildInputs = [ zeromq ];
24 propagatedBuildInputs = [ py ];
25
26 # failing tests
27 disabledTests = [
28 "test_socket" # hangs
29 "test_current"
30 "test_instance"
31 "test_callable_check"
32 "test_on_recv_basic"
33 "test_on_recv_wake"
34 "test_monitor" # https://github.com/zeromq/pyzmq/issues/1272
35 "test_cython"
36 "test_asyncio" # hangs
37 "test_mockable" # fails
38 ];
39
40 pytestFlagsArray = [
41 "$out/${python.sitePackages}/zmq/tests/" # Folder with tests
42 ];
43
44 # Some of the tests use localhost networking.
45 __darwinAllowLocalNetworking = true;
46}