1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 poetry-core,
7 poetry-dynamic-versioning,
8 pydantic,
9 pytest-asyncio,
10 pytestCheckHook,
11 radixtarget,
12 regex,
13}:
14
15buildPythonPackage rec {
16 pname = "cloudcheck";
17 version = "7.2.11";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "blacklanternsecurity";
22 repo = "cloudcheck";
23 tag = "v${version}";
24 hash = "sha256-z2KJ6EaqQLc2oQBZCfKMejPlTdgYGzmDPm/rGLHXCQA=";
25 };
26
27 pythonRelaxDeps = [
28 "radixtarget"
29 "regex"
30 ];
31
32 build-system = [
33 poetry-core
34 poetry-dynamic-versioning
35 ];
36
37 dependencies = [
38 httpx
39 pydantic
40 radixtarget
41 regex
42 ];
43
44 nativeCheckInputs = [
45 pytest-asyncio
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [ "cloudcheck" ];
50
51 meta = {
52 description = "Module to check whether an IP address or hostname belongs to popular cloud providers";
53 homepage = "https://github.com/blacklanternsecurity/cloudcheck";
54 license = lib.licenses.gpl3Only;
55 maintainers = with lib.maintainers; [ fab ];
56 };
57}