02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, py
|
|
, pytestCheckHook
|
|
, python
|
|
, pythonOlder
|
|
, tornado
|
|
, zeromq
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyzmq";
|
|
version = "23.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-pR8SqHGarZ3PtV1FYCLxa5CryN3n08qTzjEgtA4/oWk=";
|
|
};
|
|
|
|
buildInputs = [
|
|
zeromq
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
py
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
tornado
|
|
];
|
|
|
|
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; [ ];
|
|
};
|
|
}
|