nixpkgs/pkgs/development/python-modules/pyzmq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2018-04-05 19:18:15 +00:00
, fetchPypi
, py
2020-11-05 16:07:47 +00:00
, pytestCheckHook
, python
, pythonOlder
2018-04-05 19:18:15 +00:00
, tornado
2018-10-30 17:08:36 +00:00
, zeromq
2018-04-05 19:18:15 +00:00
}:
buildPythonPackage rec {
pname = "pyzmq";
version = "23.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2018-04-05 19:18:15 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-pR8SqHGarZ3PtV1FYCLxa5CryN3n08qTzjEgtA4/oWk=";
2018-04-05 19:18:15 +00:00
};
buildInputs = [
zeromq
];
propagatedBuildInputs = [
py
];
2020-11-05 16:07:47 +00:00
checkInputs = [
pytestCheckHook
tornado
];
2018-04-05 19:18:15 +00:00
pythonImportsCheck = [
"zmq"
2020-11-05 16:07:47 +00:00
];
pytestFlagsArray = [
"$out/${python.sitePackages}/zmq/tests/" # Folder with tests
];
2019-09-14 19:12:22 +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"
];
2019-09-14 19:12:22 +00:00
# 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; [ ];
};
2018-04-05 19:18:15 +00:00
}