summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/awsipranges/default.nix
blob: 5a66dbdfc3225c8b4857cc0bdd042d9f92cd7cc6 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pyopenssl,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "awsipranges";
  version = "0.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aws-samples";
    repo = "awsipranges";
    tag = version;
    hash = "sha256-ve1+0zkDDUGswtQoXhfESMcBzoNgUutxEhz43HXL4H8=";
  };

  nativeBuildInputs = [ poetry-core ];

  nativeCheckInputs = [
    pyopenssl
    pytestCheckHook
  ];

  pythonImportsCheck = [ "awsipranges" ];

  disabledTestPaths = [
    # Tests require network access
    "tests/data/test_syntax_and_semantics.py"
    "tests/integration/test_package_apis.py"
    "tests/unit/test_data_loading.py"
  ];

  meta = {
    description = "Module to work with the AWS IP address ranges";
    homepage = "https://github.com/aws-samples/awsipranges";
    changelog = "https://github.com/aws-samples/awsipranges/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}