1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 pydantic,
8 pytestCheckHook,
9 pytest-mock,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "pykka";
15 version = "4.1.1";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "jodal";
22 repo = pname;
23 tag = "v${version}";
24 hash = "sha256-n9TgXcmUEIQdqtrY+9T+EtPys+7OzXCemRwNPj1xPDw=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
30
31 nativeCheckInputs = [
32 pydantic
33 pytestCheckHook
34 pytest-mock
35 ];
36
37 pythonImportsCheck = [ "pykka" ];
38
39 meta = with lib; {
40 homepage = "https://www.pykka.org/";
41 description = "Python implementation of the actor model";
42 changelog = "https://github.com/jodal/pykka/releases/tag/${src.tag}";
43 maintainers = [ ];
44 license = licenses.asl20;
45 };
46}