2018-10-28 17:03:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, python
|
|
|
|
, serpent
|
|
|
|
, dill
|
|
|
|
, cloudpickle
|
|
|
|
, msgpack
|
|
|
|
, isPy27
|
|
|
|
, selectors34
|
2019-10-27 14:07:39 +00:00
|
|
|
, pytest
|
2018-10-28 17:03:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Pyro4";
|
2020-06-06 07:47:26 +01:00
|
|
|
version = "4.80";
|
2018-10-28 17:03:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:26 +01:00
|
|
|
sha256 = "46847ca703de3f483fbd0b2d22622f36eff03e6ef7ec7704d4ecaa3964cb2220";
|
2018-10-28 17:03:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
serpent
|
2019-10-27 14:07:39 +00:00
|
|
|
] ++ lib.optionals isPy27 [ selectors34 ];
|
2018-10-28 17:03:57 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dill
|
|
|
|
cloudpickle
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2019-10-27 14:07:39 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# add testsupport.py to PATH
|
|
|
|
# ignore network related tests, which fail in sandbox
|
2018-10-28 17:03:57 +00:00
|
|
|
checkPhase = ''
|
2019-10-27 14:07:39 +00:00
|
|
|
PYTHONPATH=tests/PyroTests:$PYTHONPATH
|
|
|
|
pytest -k 'not StartNSfunc \
|
|
|
|
and not Broadcast \
|
|
|
|
and not GetIP' \
|
|
|
|
--ignore=tests/PyroTests/test_naming.py
|
2018-10-28 17:03:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Distributed object middleware for Python (RPC)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/irmen/Pyro4";
|
2018-10-28 17:03:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|