blob: 5058b59362a67c5626634aba4925f3e777be76a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ];
};
})
|