python3Packages.asndb: init at 1.1.0

Library for looking up ASNs by IP or AS number

https://pypi.org/project/asndb
This commit is contained in:
Fabian Affolter
2026-08-02 23:43:27 +02:00
parent 524f87afe0
commit 07be72210d
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,47 @@
{
lib,
blasthttp,
buildPythonPackage,
cachetools,
fetchPypi,
nix-update-script,
radixtarget,
setuptools,
typer,
}:
buildPythonPackage (finalAttrs: {
pname = "asndb";
version = "1.1.0";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-Q1qXQepm1ouBfJwQVHKfiMPV66lLlsqZGxWa1Asj0Mo=";
};
build-system = [ setuptools ];
dependencies = [
blasthttp
cachetools
radixtarget
typer
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "asndb" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Library for looking up ASNs by IP or AS number";
homepage = "https://pypi.org/project/asndb";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
})
+2
View File
@@ -1399,6 +1399,8 @@ self: super: with self; {
asn1tools = callPackage ../development/python-modules/asn1tools { };
asndb = callPackage ../development/python-modules/asndb { };
aspectlib = callPackage ../development/python-modules/aspectlib { };
aspell-python-py3 = callPackage ../development/python-modules/aspell-python-py3 { };