about summary refs log tree commit diff
path: root/pkgs/development/python-modules/awacs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/awacs/default.nix')
-rw-r--r--pkgs/development/python-modules/awacs/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/awacs/default.nix b/pkgs/development/python-modules/awacs/default.nix
new file mode 100644
index 0000000000000..38ca2a11563c1
--- /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";
+  };
+}