1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pyopenssl, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "awsipranges"; 13 version = "0.3.3"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "aws-samples"; 20 repo = "awsipranges"; 21 tag = version; 22 hash = "sha256-ve1+0zkDDUGswtQoXhfESMcBzoNgUutxEhz43HXL4H8="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 nativeCheckInputs = [ 28 pyopenssl 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "awsipranges" ]; 33 34 disabledTestPaths = [ 35 # Tests require network access 36 "tests/data/test_syntax_and_semantics.py" 37 "tests/integration/test_package_apis.py" 38 "tests/unit/test_data_loading.py" 39 ]; 40 41 meta = with lib; { 42 description = "Module to work with the AWS IP address ranges"; 43 homepage = "https://github.com/aws-samples/awsipranges"; 44 changelog = "https://github.com/aws-samples/awsipranges/releases/tag/${version}"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}