nixpkgs/pkgs/development/python-modules/pycfmodel/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

55 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pydantic,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pycfmodel";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Skyscanner";
repo = "pycfmodel";
tag = "v${version}";
hash = "sha256-ta6kS+MiSa2DZx18EQr7hvWYrK55j48hSBACtcklCpI=";
};
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 = {
description = "Model for Cloud Formation scripts";
homepage = "https://github.com/Skyscanner/pycfmodel";
changelog = "https://github.com/Skyscanner/pycfmodel/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}