Files
nixpkgs/pkgs/development/python-modules/asndb/default.nix
2026-11-11 00:47:11 +01:00

46 lines
837 B
Nix

{
lib,
blasthttp,
buildPythonPackage,
cachetools,
fetchPypi,
nix-update-script,
radixtarget,
setuptools,
typer,
}:
buildPythonPackage (finalAttrs: {
pname = "asndb";
version = "1.1.1";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-knLdKdZJzlxfX8xshDgkiBINj3VxZWgByNlw56/CoDo=";
};
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 ];
};
})