1{ lib, buildPythonPackage, fetchPypi
2, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
3
4buildPythonPackage rec {
5 version = "1.12.3";
6 pname = "aws-adfs";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "b7df3fbe0572eb12294b2e072327ca97fd94d435b39cc10612e460cde914b831";
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}