@@ -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+}