Commit 33b99510 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.Pyro5: add pythonImportsCheck

- add changelog to meta
parent 744ce872
Loading
Loading
Loading
Loading
+27 −11
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchPypi
, lib
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, serpent
, pythonOlder
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "Pyro5";
  pname = "pyro5";
  version = "5.14";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo=";
    pname = "Pyro5";
    inherit version;
    hash = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo=";
  };

  propagatedBuildInputs = [ serpent ];
  propagatedBuildInputs = [
    serpent
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  # ignore network related tests, which fail in sandbox
  disabledTests = [ "StartNSfunc" "Broadcast" "GetIP" "TestNameServer" "TestBCSetup" ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
  disabledTests = [
    # Ignore network related tests, which fail in sandbox
    "StartNSfunc"
    "Broadcast"
    "GetIP"
    "TestNameServer"
    "TestBCSetup"
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    "Socket"
  ];

  pythonImportsCheck = [
    "Pyro5"
  ];

  meta = with lib; {
    description = "Distributed object middleware for Python (RPC)";
    homepage = "https://github.com/irmen/Pyro5";
    changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ peterhoeg ];
  };