summary refs log tree commit diff
path: root/pkgs/development/python-modules/aws-adfs
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2018-07-15 11:16:32 -0400
committerRobert Schütz <rschuetz17@gmail.com>2018-07-15 17:16:32 +0200
commitdab1b67f9aacc388332867fb2ee9490828e6ae45 (patch)
tree9aa336b62d1dee22b684c9615c2c829bf0ba155c /pkgs/development/python-modules/aws-adfs
parentdb00e457aca5e765957005ec9e1a41400e2bcb70 (diff)
downloadnixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar.gz
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar.bz2
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar.lz
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar.xz
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.tar.zst
nixpkgs-dab1b67f9aacc388332867fb2ee9490828e6ae45.zip
pythonPackages.aws-adfs: init at 0.12.0 (#43458)
Diffstat (limited to 'pkgs/development/python-modules/aws-adfs')
-rw-r--r--pkgs/development/python-modules/aws-adfs/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aws-adfs/default.nix b/pkgs/development/python-modules/aws-adfs/default.nix
new file mode 100644
index 00000000000..c42ad6f1d6c
--- /dev/null
+++ b/pkgs/development/python-modules/aws-adfs/default.nix
@@ -0,0 +1,33 @@
+{ lib, buildPythonPackage, fetchPypi
+, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
+
+buildPythonPackage rec {
+  version = "0.12.0";
+  pname = "aws-adfs";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1cjrm61k6905dmhgrqyc5caxx5hbhj3sr6cx4r6sbdyz453i7pc6";
+  };
+
+  # Relax version constraint
+  patchPhase = ''
+    sed -i 's/coverage < 4/coverage/' setup.py
+  '';
+
+  # Test suite writes files to $HOME/.aws/, or /homeless-shelter if unset
+  HOME = ".";
+
+  # Required for python3 tests, along with glibcLocales
+  LC_ALL = "en_US.UTF-8";
+
+  checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
+  propagatedBuildInputs = [ lxml boto3 requests click configparser ];
+
+  meta = {
+    description = "Command line tool to ease aws cli authentication against ADFS";
+    homepage = https://github.com/venth/aws-adfs;
+    license = lib.licenses.psfl;
+    maintainers = [ lib.maintainers.bhipple ];
+  };
+}