about summary refs log tree commit diff
path: root/pkgs/tools/admin/aws-mfa
diff options
context:
space:
mode:
authorSolène Rapenne <solene@perso.pw>2021-01-28 08:56:06 +0100
committerSolène Rapenne <solene.rapenne@nbs-system.com>2021-01-28 08:56:06 +0100
commit9efd2d9ca1e764d016e7384fbb855b2ea9b1f111 (patch)
tree78fa75e3e6727fd5c82e0da2ac72374e2b51abc4 /pkgs/tools/admin/aws-mfa
parent51a303a69f44641c6b2c2956133b0416b0c5bf4d (diff)
aws-mfa: init at 0.0.12
Diffstat (limited to 'pkgs/tools/admin/aws-mfa')
-rw-r--r--pkgs/tools/admin/aws-mfa/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/admin/aws-mfa/default.nix b/pkgs/tools/admin/aws-mfa/default.nix
new file mode 100644
index 0000000000000..12f63e627e6d4
--- /dev/null
+++ b/pkgs/tools/admin/aws-mfa/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, pkgs
+, boto3
+}:
+
+buildPythonApplication rec {
+  pname = "aws-mfa";
+  version = "0.0.12";
+
+  src = fetchFromGitHub {
+    owner = "broamski";
+    repo = "aws-mfa";
+    rev = version;
+    sha256 = "1blcpa13zgyac3v8inc7fh9szxq2avdllx6w5ancfmyh5spc66ay";
+  };
+
+  propagatedBuildInputs = [
+    boto3
+  ];
+
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "awsmfa"
+  ];
+
+  meta = with lib; {
+    description = "Manage AWS MFA Security Credentials";
+    homepage = "https://github.com/broamski/aws-mfa";
+    license = [ licenses.mit ];
+    maintainers = [ maintainers.srapenne ];
+  };
+}