depot/third_party/nixpkgs/pkgs/development/python-modules/troposphere/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

53 lines
1 KiB
Nix

{ lib
, awacs
, buildPythonPackage
, cfn-flip
, fetchFromGitHub
, pythonOlder
, typing-extensions
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "troposphere";
version = "4.5.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cloudtools";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Kk4PvkUC1JB2MNyarq/cHhOOc+2Id7HlR/hSt/5JjlI=";
};
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 ];
};
}