nixpkgs/pkgs/development/python-modules/aws-adfs/default.nix

36 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi
2020-04-01 07:44:34 +01:00
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore
, requests, requests-kerberos, click, configparser, fido2, isPy27 }:
buildPythonPackage rec {
pname = "aws-adfs";
2020-04-01 07:44:34 +01:00
version = "1.24.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2020-04-01 07:44:34 +01:00
sha256 = "0bcjlf5dkg2q0db0ra1ssa3hy98spflkd3ykhmlyv65rkgx8w1wv";
};
# 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 ];
2020-04-01 07:44:34 +01:00
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
meta = with lib; {
description = "Command line tool to ease aws cli authentication against ADFS";
2020-04-01 07:44:34 +01:00
homepage = "https://github.com/venth/aws-adfs";
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
};
}