nixpkgs/pkgs/development/python-modules/python-ndn/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

59 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";
pyproject = true;
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 = [ ];
};
}