mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-22 07:50:31 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aenum,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lark,
|
|
poetry-core,
|
|
poetry-dynamic-versioning,
|
|
pycryptodomex,
|
|
pygtrie,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-ndn";
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "named-data";
|
|
repo = "python-ndn";
|
|
tag = "v${version}";
|
|
hash = "sha256-8fcBIcZ2l6mkKe9YQe5+5fh7+vK9qxzBO2kLRUONumQ=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
poetry-dynamic-versioning
|
|
pycryptodomex
|
|
lark
|
|
pygtrie
|
|
aenum
|
|
aiohttp
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonRelaxDeps = [ "lark" ];
|
|
|
|
pythonImportsCheck = [ "ndn" ];
|
|
|
|
meta = {
|
|
description = "NDN client library with AsyncIO support";
|
|
homepage = "https://github.com/named-data/python-ndn";
|
|
changelog = "https://github.com/named-data/python-ndn/blob/${src.tag}/CHANGELOG.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|