Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-ndn / default.nix
blob6c47e8189a9207b22b14ead0190c7095d945cc19
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
17 buildPythonPackage rec {
18   pname = "python-ndn";
19   version = "0.4.1";
21   format = "pyproject";
23   src = fetchFromGitHub {
24     owner = "named-data";
25     repo = pname;
26     rev = "refs/tags/v${version}";
27     hash = "sha256-ArTP4LQu7VNjI/N13gMTc1SDiNmW5l4GdLYOk8JEfKg=";
28   };
30   disabled = pythonOlder "3.11";
32   nativeBuildInputs = [
33     setuptools
34     poetry-core
35     pythonRelaxDepsHook
36   ];
38   propagatedBuildInputs = [
39     poetry-dynamic-versioning
40     pycryptodomex
41     lark
42     pygtrie
43     aenum
44     aiohttp
45   ];
47   nativeCheckInputs = [
48     pytestCheckHook
49   ];
51   pythonRelaxDeps = [
52     "lark"
53   ];
55   pythonImportChecks = [ "ndn" ];
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   };