1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 00:49:27 +03:00
nixpkgs/pkgs/development/python-modules/pyro4/default.nix

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

68 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, serpent
, dill
, cloudpickle
, msgpack
, isPy27
2020-11-30 16:15:53 -08:00
, pytestCheckHook
}:
buildPythonPackage rec {
2022-01-12 23:25:29 +01:00
pname = "pyro4";
version = "4.82";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
2022-01-12 23:25:29 +01:00
pname = "Pyro4";
inherit version;
hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
};
propagatedBuildInputs = [
serpent
];
buildInputs = [
dill
cloudpickle
msgpack
];
2022-01-12 23:25:29 +01:00
checkInputs = [
pytestCheckHook
];
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";
2022-01-12 23:25:29 +01:00
pytestFlagsArray = [
# ignore network related tests, which fail in sandbox
"--ignore=tests/PyroTests/test_naming.py"
];
2020-11-30 16:15:53 -08:00
disabledTests = [
"StartNSfunc"
"Broadcast"
"GetIP"
];
# otherwise the tests hang the build
__darwinAllowLocalNetworking = true;
2022-01-12 23:25:29 +01:00
pythonImportsCheck = [
"Pyro4"
];
meta = with lib; {
description = "Distributed object middleware for Python (RPC)";
homepage = "https://github.com/irmen/Pyro4";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}