2018-07-15 16:16:32 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2019-09-06 04:59:20 +01:00
|
|
|
version = "1.17.0";
|
2018-07-15 16:16:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-06 04:59:20 +01:00
|
|
|
sha256 = "0wnsmwjpfhxilmvrqvwilcf3h9p5m5ixi5gn9bgkr3gwd2laxf54";
|
2018-07-15 16:16:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
|
2019-09-06 04:59:20 +01:00
|
|
|
meta = with lib; {
|
2018-07-15 16:16:32 +01:00
|
|
|
description = "Command line tool to ease aws cli authentication against ADFS";
|
|
|
|
homepage = https://github.com/venth/aws-adfs;
|
2019-09-06 04:59:20 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
2018-07-15 16:16:32 +01:00
|
|
|
};
|
|
|
|
}
|