Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyro5 / default.nix
blobeacf7436cda6ef3d72d177298282ac9286a06976
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , serpent
6 , pythonOlder
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pyro5";
12   version = "5.15";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchPypi {
18     pname = "Pyro5";
19     inherit version;
20     hash = "sha256-gsPfyYYLSfiXso/yT+ZxbIQWcsYAr4/kDQ46f6yaP14=";
21   };
23   propagatedBuildInputs = [
24     serpent
25   ];
27   __darwinAllowLocalNetworking = true;
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   disabledTests = [
34     # Ignore network related tests, which fail in sandbox
35     "StartNSfunc"
36     "Broadcast"
37     "GetIP"
38     "TestNameServer"
39     "TestBCSetup"
40   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
41     "Socket"
42   ];
44   pythonImportsCheck = [
45     "Pyro5"
46   ];
48   meta = with lib; {
49     description = "Distributed object middleware for Python (RPC)";
50     homepage = "https://github.com/irmen/Pyro5";
51     changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}";
52     license = licenses.mit;
53     maintainers = with maintainers; [ peterhoeg ];
54   };