Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 38 lines 874 B view raw
1{ buildPythonPackage 2, fetchPypi 3, pytest 4, tornado 5, zeromq 6, py 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "pyzmq"; 12 version = "18.1.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "8c69a6cbfa94da29a34f6b16193e7c15f5d3220cb772d6d17425ff3faa063a6d"; 17 }; 18 19 checkInputs = [ pytest tornado ]; 20 buildInputs = [ zeromq ]; 21 propagatedBuildInputs = [ py ]; 22 23 # test_socket.py seems to be hanging 24 # others fail 25 # for test_monitor: https://github.com/zeromq/pyzmq/issues/1272 26 checkPhase = '' 27 py.test $out/${python.sitePackages}/zmq/ -k "not test_socket \ 28 and not test_current \ 29 and not test_instance \ 30 and not test_callable_check \ 31 and not test_on_recv_basic \ 32 and not test_on_recv_wake \ 33 and not test_monitor" 34 ''; 35 36 # Some of the tests use localhost networking. 37 __darwinAllowLocalNetworking = true; 38}