Diff: https://github.com/named-data/python-ndn/compare/v0.3-3...v0.4.1 Changelog: https://github.com/named-data/python-ndn/blob/v0.4.1/CHANGELOG.rst
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, aenum
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lark
|
|
, poetry-core
|
|
, poetry-dynamic-versioning
|
|
, pycryptodomex
|
|
, pygtrie
|
|
, pytestCheckHook
|
|
, pythonRelaxDepsHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-ndn";
|
|
version = "0.4.1";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "named-data";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-ArTP4LQu7VNjI/N13gMTc1SDiNmW5l4GdLYOk8JEfKg=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
poetry-dynamic-versioning
|
|
pycryptodomex
|
|
lark
|
|
pygtrie
|
|
aenum
|
|
aiohttp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"lark"
|
|
];
|
|
|
|
pythonImportChecks = [ "ndn" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|