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