git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.aws-adfs: init at 0.12.0 (#43458)
commitdab1b67f9aacc388332867fb2ee9490828e6ae45 authorBenjamin Hipple <bhipple@protonmail.com> dateSun 15 Jul 2018, 11:16 (8 years ago) parentdb00e45
2 files changed+35
pkgs/development/python-modules/aws-adfs/default.nix+33 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/aws-adfs/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib, buildPythonPackage, fetchPypi
2+, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
3+
4+buildPythonPackage rec {
5+ version = "0.12.0";
6+ pname = "aws-adfs";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1cjrm61k6905dmhgrqyc5caxx5hbhj3sr6cx4r6sbdyz453i7pc6";
11+ };
12+
13+ # Relax version constraint
14+ patchPhase = ''
15+ sed -i 's/coverage < 4/coverage/' setup.py
16+ '';
17+
18+ # Test suite writes files to $HOME/.aws/, or /homeless-shelter if unset
19+ HOME = ".";
20+
21+ # Required for python3 tests, along with glibcLocales
22+ LC_ALL = "en_US.UTF-8";
23+
24+ checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
25+ propagatedBuildInputs = [ lxml boto3 requests click configparser ];
26+
27+ meta = {
28+ description = "Command line tool to ease aws cli authentication against ADFS";
29+ homepage = https://github.com/venth/aws-adfs;
30+ license = lib.licenses.psfl;
31+ maintainers = [ lib.maintainers.bhipple ];
32+ };
33+}
pkgs/top-level/python-packages.nix+2
@@ -205,6 +205,8 @@ in {
205205
206206 aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { };
207207
208+ aws-adfs = callPackage ../development/python-modules/aws-adfs { };
209+
208210 # packages defined elsewhere
209211
210212 amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };