1{ lib
2, aenum
3, aiohttp
4, buildPythonPackage
5, fetchFromGitHub
6, lark
7, poetry-core
8, poetry-dynamic-versioning
9, pycryptodomex
10, pygtrie
11, pytestCheckHook
12, pythonRelaxDepsHook
13, pythonOlder
14, setuptools
15}:
16
17buildPythonPackage rec {
18 pname = "python-ndn";
19 version = "0.4.1";
20
21 format = "pyproject";
22
23 src = fetchFromGitHub {
24 owner = "named-data";
25 repo = pname;
26 rev = "refs/tags/v${version}";
27 hash = "sha256-ArTP4LQu7VNjI/N13gMTc1SDiNmW5l4GdLYOk8JEfKg=";
28 };
29
30 disabled = pythonOlder "3.11";
31
32 nativeBuildInputs = [
33 setuptools
34 poetry-core
35 pythonRelaxDepsHook
36 ];
37
38 propagatedBuildInputs = [
39 poetry-dynamic-versioning
40 pycryptodomex
41 lark
42 pygtrie
43 aenum
44 aiohttp
45 ];
46
47 nativeCheckInputs = [
48 pytestCheckHook
49 ];
50
51 pythonRelaxDeps = [
52 "lark"
53 ];
54
55 pythonImportChecks = [ "ndn" ];
56
57 meta = with lib; {
58 description = "An NDN client library with AsyncIO support";
59 homepage = "https://github.com/named-data/python-ndn";
60 changelog = "https://github.com/named-data/python-ndn/blob/${src.rev}/CHANGELOG.rst";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ janik ];
63 };
64}