01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
38 lines
763 B
Nix
38 lines
763 B
Nix
{ 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";
|
|
};
|
|
}
|