2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2022-06-26 10:26:21 +00:00
|
|
|
, py
|
2020-11-06 00:33:48 +00:00
|
|
|
, pytestCheckHook
|
2022-06-26 10:26:21 +00:00
|
|
|
, python
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
|
|
|
, zeromq
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyzmq";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "23.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-pF9cBHfRLfBe8uKSK0m3wK6dD0/5trsNZmVY3w7zcSI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildInputs = [
|
|
|
|
zeromq
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
py
|
|
|
|
];
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
tornado
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zmq"
|
2020-11-06 00:33:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"$out/${python.sitePackages}/zmq/tests/" # Folder with tests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for ØMQ";
|
|
|
|
homepage = "https://pyzmq.readthedocs.io/";
|
|
|
|
license = with licenses; [ bsd3 /* or */ lgpl3Only ];
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|