summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cloudcheck/default.nix
blob: b9094e6ca1907bdf27e7a574a9cef6a67b648ed2 (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
48
49
50
51
52
53
54
55
56
57
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  httpx,
  poetry-core,
  poetry-dynamic-versioning,
  pydantic,
  pytest-asyncio,
  pytestCheckHook,
  radixtarget,
  regex,
}:

buildPythonPackage rec {
  pname = "cloudcheck";
  version = "7.2.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "blacklanternsecurity";
    repo = "cloudcheck";
    tag = "v${version}";
    hash = "sha256-z2KJ6EaqQLc2oQBZCfKMejPlTdgYGzmDPm/rGLHXCQA=";
  };

  pythonRelaxDeps = [
    "radixtarget"
    "regex"
  ];

  build-system = [
    poetry-core
    poetry-dynamic-versioning
  ];

  dependencies = [
    httpx
    pydantic
    radixtarget
    regex
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "cloudcheck" ];

  meta = {
    description = "Module to check whether an IP address or hostname belongs to popular cloud providers";
    homepage = "https://github.com/blacklanternsecurity/cloudcheck";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fab ];
  };
}