depot/third_party/nixpkgs/pkgs/development/python-modules/pycfmodel/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

60 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pydantic,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pycfmodel";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Skyscanner";
repo = "pycfmodel";
rev = "refs/tags/${version}";
hash = "sha256-iCjOSwW6rdG3H4e/B/um+QioP45nOr9OcPAwXxZs3mU=";
};
pythonRelaxDeps = [ "pydantic" ];
build-system = [ setuptools ];
dependencies = [ pydantic ];
nativeCheckInputs = [
httpx
pytestCheckHook
];
disabledTests = [
# Test require network access
"test_cloudformation_actions"
"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"
"test_resolve_booleans_different_properties_for_generic_resource"
"test_loose_ip"
"test_extra_fields_not_allowed_s3_bucket"
"test_raise_error_if_invalid_fields_in_resource"
""
];
pythonImportsCheck = [ "pycfmodel" ];
meta = with lib; {
description = "Model for Cloud Formation scripts";
homepage = "https://github.com/Skyscanner/pycfmodel";
changelog = "https://github.com/Skyscanner/pycfmodel/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}