depot/third_party/nixpkgs/pkgs/development/python-modules/pykka/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

49 lines
956 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pytest-mock
, typing-extensions
}:
buildPythonPackage rec {
pname = "pykka";
version = "4.0.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jodal";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-SYgT69/AZX/JDm89PwFqrUL9Ll1iHRKEy78BN4QKz9Y=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
pythonImportsCheck = [
"pykka"
];
meta = with lib; {
homepage = "https://www.pykka.org/";
description = "A Python implementation of the actor model";
changelog = "https://github.com/jodal/pykka/releases/tag/v${version}";
maintainers = with maintainers; [ marsam ];
license = licenses.asl20;
};
}