mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, pydantic
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycfmodel";
|
|
version = "0.20.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Skyscanner";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-dHgd6vnmlg+VXMp7QUZoT2aic1X05lJGm8hDrowALvk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pycfmodel"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Model for Cloud Formation scripts";
|
|
homepage = "https://github.com/Skyscanner/pycfmodel";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|