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