mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
python3Packages.troposphere: init at 4.1.0
This commit is contained in:
parent
115139edd3
commit
5608b9beb9
52
pkgs/development/python-modules/troposphere/default.nix
Normal file
52
pkgs/development/python-modules/troposphere/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, python
|
||||
|
||||
# python dependencies
|
||||
, awacs
|
||||
, cfn-flip
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "troposphere";
|
||||
version = "4.1.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cloudtools";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-cAn4Hty5f/RsCnUA59CxtGrhRgzVyaHe5PuQOM6lwEQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cfn-flip
|
||||
] ++ lib.lists.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
awacs
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
policy = [ awacs ];
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "troposphere" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to create AWS CloudFormation descriptions";
|
||||
maintainers = with maintainers; [ jlesquembre ];
|
||||
license = licenses.bsd2;
|
||||
homepage = "https://github.com/cloudtools/troposphere";
|
||||
};
|
||||
}
|
@ -11312,6 +11312,8 @@ self: super: with self; {
|
||||
|
||||
trio-websocket = callPackage ../development/python-modules/trio-websocket { };
|
||||
|
||||
troposphere = callPackage ../development/python-modules/troposphere { };
|
||||
|
||||
trueskill = callPackage ../development/python-modules/trueskill { };
|
||||
|
||||
trustme = callPackage ../development/python-modules/trustme { };
|
||||
|
Loading…
Reference in New Issue
Block a user