mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
awacs,
|
|
buildPythonPackage,
|
|
cfn-flip,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
typing-extensions,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "troposphere";
|
|
version = "4.8.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudtools";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Mz6n7QjNvK2HEQeWCySdxioA1dD5CLUh7jCQb1Q6mdc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cfn-flip ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
awacs
|
|
unittestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|