1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/development/python-modules/pyro4/default.nix
2024-05-22 17:32:03 +02:00

67 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
cloudpickle,
dill,
fetchPypi,
msgpack,
pytestCheckHook,
pythonAtLeast,
serpent,
}:
buildPythonPackage rec {
pname = "pyro4";
version = "4.82";
format = "setuptools";
# No support Python >= 3.11
# https://github.com/irmen/Pyro4/issues/246
disabled = pythonAtLeast "3.11";
src = fetchPypi {
pname = "Pyro4";
inherit version;
hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
};
propagatedBuildInputs = [ serpent ];
buildInputs = [
dill
cloudpickle
msgpack
];
nativeCheckInputs = [ pytestCheckHook ];
# add testsupport.py to PATH
preCheck = ''
PYTHONPATH=tests/PyroTests:$PYTHONPATH
'';
disabledTestPaths = [
# ignore network related tests, which fail in sandbox
"tests/PyroTests/test_naming.py"
];
disabledTests = [
"StartNSfunc"
"Broadcast"
"GetIP"
];
# otherwise the tests hang the build
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "Pyro4" ];
meta = with lib; {
description = "Distributed object middleware for Python (RPC)";
homepage = "https://github.com/irmen/Pyro4";
changelog = "https://github.com/irmen/Pyro4/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}