2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, serpent
|
|
|
|
, dill
|
|
|
|
, cloudpickle
|
|
|
|
, msgpack
|
|
|
|
, isPy27
|
|
|
|
, selectors34
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Pyro4";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "4.80";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "46847ca703de3f483fbd0b2d22622f36eff03e6ef7ec7704d4ecaa3964cb2220";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
serpent
|
|
|
|
] ++ lib.optionals isPy27 [ selectors34 ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dill
|
|
|
|
cloudpickle
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# add testsupport.py to PATH
|
2020-12-07 07:45:13 +00:00
|
|
|
preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# ignore network related tests, which fail in sandbox
|
2020-12-07 07:45:13 +00:00
|
|
|
pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
disabledTests = [
|
|
|
|
"StartNSfunc"
|
|
|
|
"Broadcast"
|
|
|
|
"GetIP"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
# otherwise the tests hang the build
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Distributed object middleware for Python (RPC)";
|
|
|
|
homepage = "https://github.com/irmen/Pyro4";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|