2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, aenum
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lark
|
2023-10-09 19:29:22 +00:00
|
|
|
, poetry-core
|
|
|
|
, poetry-dynamic-versioning
|
2023-08-22 20:05:09 +00:00
|
|
|
, pycryptodomex
|
|
|
|
, pygtrie
|
|
|
|
, pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-08-22 20:05:09 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-ndn";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.4.1";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "named-data";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-ArTP4LQu7VNjI/N13gMTc1SDiNmW5l4GdLYOk8JEfKg=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
2023-08-22 20:05:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
poetry-dynamic-versioning
|
2023-08-22 20:05:09 +00:00
|
|
|
pycryptodomex
|
|
|
|
lark
|
|
|
|
pygtrie
|
|
|
|
aenum
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"lark"
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [ "ndn" ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An NDN client library with AsyncIO support";
|
|
|
|
homepage = "https://github.com/named-data/python-ndn";
|
|
|
|
changelog = "https://github.com/named-data/python-ndn/blob/${src.rev}/CHANGELOG.rst";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ janik ];
|
|
|
|
};
|
|
|
|
}
|