depot/third_party/nixpkgs/pkgs/development/python-modules/awacs/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

39 lines
828 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
, typing-extensions
}:
buildPythonPackage rec {
pname = "awacs";
version = "2.4.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-iflg6tjqFl1gWOzlJhQwGHhAQ/pKm9n8GVvUz6fSboM=";
};
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";
homepage = "https://github.com/cloudtools/awacs";
changelog = "https://github.com/cloudtools/awacs/blob/${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [ jlesquembre ];
};
}