depot/third_party/nixpkgs/pkgs/development/python-modules/python-ndn/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

54 lines
984 B
Nix

{ lib
, aenum
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, lark
, pycryptodomex
, pygtrie
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "python-ndn";
version = "0.3-3";
format = "pyproject";
src = fetchFromGitHub {
owner = "named-data";
repo = pname;
rev = "v${version}";
hash = "sha256-XS71oIydyLYtx6OQGO5NrhjVSyZxnhufrZ1y/6TffPo=";
};
disabled = pythonOlder "3.9";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pycryptodomex
lark
pygtrie
aenum
aiohttp
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}