From 115139edd3bee7961ca0a13cf29181a5fea29d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Sun, 20 Nov 2022 00:33:27 +0100 Subject: [PATCH] python3Packages.awacs: init at 2.2.0 --- .../python-modules/awacs/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/awacs/default.nix diff --git a/pkgs/development/python-modules/awacs/default.nix b/pkgs/development/python-modules/awacs/default.nix new file mode 100644 index 000000000000..38ca2a11563c --- /dev/null +++ b/pkgs/development/python-modules/awacs/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a52782b78aeb..08c900f51bfc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };