at master 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 pydantic, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pycfmodel"; 14 version = "1.1.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "Skyscanner"; 21 repo = "pycfmodel"; 22 tag = "v${version}"; 23 hash = "sha256-ITgha0gZxGPCE+7HVQyDNiPI5uAYZo9Rz8fZVgCYgeM="; 24 }; 25 26 pythonRelaxDeps = [ "pydantic" ]; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ pydantic ]; 31 32 nativeCheckInputs = [ 33 httpx 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Test require network access 39 "test_cloudformation_actions" 40 "test_auxiliar_cast" 41 "test_valid_es_domain_from_aws_documentation_examples_resource_can_be_built" 42 "test_valid_opensearch_domain_from_aws_documentation_examples_resource_can_be_built" 43 "test_resolve_booleans_different_properties_for_generic_resource" 44 "test_loose_ip" 45 "test_extra_fields_not_allowed_s3_bucket" 46 "test_raise_error_if_invalid_fields_in_resource" 47 ]; 48 49 pythonImportsCheck = [ "pycfmodel" ]; 50 51 meta = with lib; { 52 description = "Model for Cloud Formation scripts"; 53 homepage = "https://github.com/Skyscanner/pycfmodel"; 54 changelog = "https://github.com/Skyscanner/pycfmodel/releases/tag/${src.tag}"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}