2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, awacs
|
|
, buildPythonPackage
|
|
, cfn-flip
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, typing-extensions
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "troposphere";
|
|
version = "4.5.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudtools";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LLky4lSSMUmLEf+qHwgPvDu0DZhG4WWZ1aFSXqFm1BA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cfn-flip
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
awacs
|
|
unittestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
policy = [
|
|
awacs
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"troposphere"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to create AWS CloudFormation descriptions";
|
|
homepage = "https://github.com/cloudtools/troposphere";
|
|
changelog = "https://github.com/cloudtools/troposphere/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ jlesquembre ];
|
|
};
|
|
}
|