2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycfmodel";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.0.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Skyscanner";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "pycfmodel";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-iCjOSwW6rdG3H4e/B/um+QioP45nOr9OcPAwXxZs3mU=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonRelaxDeps = [ "pydantic" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
|
|
|
|
dependencies = [ pydantic ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test require network access
|
|
|
|
"test_cloudformation_actions"
|
2022-02-20 05:27:41 +00:00
|
|
|
"test_auxiliar_cast"
|
|
|
|
"test_valid_es_domain_from_aws_documentation_examples_resource_can_be_built"
|
|
|
|
"test_valid_opensearch_domain_from_aws_documentation_examples_resource_can_be_built"
|
2022-03-05 16:20:37 +00:00
|
|
|
"test_resolve_booleans_different_properties_for_generic_resource"
|
2024-06-20 14:57:18 +00:00
|
|
|
"test_loose_ip"
|
|
|
|
"test_extra_fields_not_allowed_s3_bucket"
|
|
|
|
"test_raise_error_if_invalid_fields_in_resource"
|
|
|
|
""
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pycfmodel" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Model for Cloud Formation scripts";
|
|
|
|
homepage = "https://github.com/Skyscanner/pycfmodel";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/Skyscanner/pycfmodel/releases/tag/v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|