2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, awacs
|
2022-11-21 17:40:18 +00:00
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, cfn-flip
|
2022-11-21 17:40:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2023-10-09 19:29:22 +00:00
|
|
|
, unittestCheckHook
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "troposphere";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.4.1";
|
2022-12-28 21:21:41 +00:00
|
|
|
format = "setuptools";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudtools";
|
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-ecRpp8XsP/iv4G8m85qcGJXHXH4CPdgBO8c0IZU56wU=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cfn-flip
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
2022-11-21 17:40:18 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
awacs
|
2023-10-09 19:29:22 +00:00
|
|
|
unittestCheckHook
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2023-10-09 19:29:22 +00:00
|
|
|
policy = [
|
|
|
|
awacs
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"troposphere"
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to create AWS CloudFormation descriptions";
|
|
|
|
homepage = "https://github.com/cloudtools/troposphere";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/cloudtools/troposphere/blob/${version}/CHANGELOG.rst";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ jlesquembre ];
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
}
|