python3Packages.awacs: init at 2.2.0

This commit is contained in:
José Luis Lafuente 2022-11-20 00:33:27 +01:00 committed by Robert Schütz
parent fc627062ab
commit 115139edd3
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
# python dependencies
, typing-extensions
}:
buildPythonPackage rec {
pname = "awacs";
version = "2.2.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zWRQHxjHogmSKSqnvQLJCdoilkOlJ07p00lN+U46WkU=";
};
propagatedBuildInputs = lib.lists.optionals (pythonOlder "3.8") [
typing-extensions
];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
pythonImportsCheck = [ "awacs" ];
meta = with lib; {
description = "AWS Access Policy Language creation library";
maintainers = with maintainers; [ jlesquembre ];
license = licenses.bsd2;
homepage = "https://github.com/cloudtools/awacs";
};
}

View File

@ -799,6 +799,8 @@ self: super: with self; {
avro-python3 = callPackage ../development/python-modules/avro-python3 { };
awacs = callPackage ../development/python-modules/awacs { };
awesome-slugify = callPackage ../development/python-modules/awesome-slugify { };
awesomeversion = callPackage ../development/python-modules/awesomeversion { };