2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-28 18:03:57 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, serpent
|
|
|
|
, dill
|
|
|
|
, cloudpickle
|
|
|
|
, msgpack
|
|
|
|
, isPy27
|
2020-11-30 16:15:53 -08:00
|
|
|
, pytestCheckHook
|
2018-10-28 18:03:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-12 23:25:29 +01:00
|
|
|
pname = "pyro4";
|
|
|
|
version = "4.82";
|
|
|
|
format = "setuptools";
|
2018-10-28 18:03:57 +01:00
|
|
|
|
2021-05-29 22:40:21 +02:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2018-10-28 18:03:57 +01:00
|
|
|
src = fetchPypi {
|
2022-01-12 23:25:29 +01:00
|
|
|
pname = "Pyro4";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
|
2018-10-28 18:03:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
serpent
|
2021-05-29 22:40:21 +02:00
|
|
|
];
|
2018-10-28 18:03:57 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dill
|
|
|
|
cloudpickle
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2022-01-12 23:25:29 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-02 20:23:30 +01:00
|
|
|
|
2019-10-27 07:07:39 -07:00
|
|
|
# add testsupport.py to PATH
|
2020-11-30 16:15:53 -08:00
|
|
|
preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
|
2021-01-02 20:23:30 +01:00
|
|
|
|
2022-01-12 23:25:29 +01:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
# ignore network related tests, which fail in sandbox
|
|
|
|
"--ignore=tests/PyroTests/test_naming.py"
|
|
|
|
];
|
2021-01-02 20:23:30 +01:00
|
|
|
|
2020-11-30 16:15:53 -08:00
|
|
|
disabledTests = [
|
|
|
|
"StartNSfunc"
|
|
|
|
"Broadcast"
|
|
|
|
"GetIP"
|
|
|
|
];
|
2018-10-28 18:03:57 +01:00
|
|
|
|
2021-01-03 00:15:35 +01:00
|
|
|
# otherwise the tests hang the build
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-01-12 23:25:29 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"Pyro4"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-28 18:03:57 +01:00
|
|
|
description = "Distributed object middleware for Python (RPC)";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/irmen/Pyro4";
|
2018-10-28 18:03:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
2021-01-02 20:23:30 +01:00
|
|
|
};
|
2018-10-28 18:03:57 +01:00
|
|
|
}
|