depot/third_party/nixpkgs/pkgs/development/python-modules/awsipranges/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyopenssl,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "awsipranges";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws-samples";
repo = "awsipranges";
rev = "refs/tags/${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 = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}