python3Packages.aws-adfs: fix build
This commit is contained in:
parent
7e65690165
commit
1a4f4b8849
1 changed files with 34 additions and 7 deletions
|
@ -1,6 +1,19 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore
|
, botocore
|
||||||
, requests, requests-kerberos, click, configparser, fido2, isPy27 }:
|
, buildPythonPackage
|
||||||
|
, click
|
||||||
|
, configparser
|
||||||
|
, fetchPypi
|
||||||
|
, fido2
|
||||||
|
, glibcLocales
|
||||||
|
, isPy27
|
||||||
|
, lxml
|
||||||
|
, mock
|
||||||
|
, pyopenssl
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
|
, requests-kerberos
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aws-adfs";
|
pname = "aws-adfs";
|
||||||
|
@ -12,8 +25,25 @@ buildPythonPackage rec {
|
||||||
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
botocore
|
||||||
|
click
|
||||||
|
configparser
|
||||||
|
fido2
|
||||||
|
lxml
|
||||||
|
pyopenssl
|
||||||
|
requests
|
||||||
|
requests-kerberos
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
glibcLocales
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# Relax version constraint
|
# Relax version constraint
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
sed -i 's/coverage < 4/coverage/' setup.py
|
sed -i 's/coverage < 4/coverage/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -23,9 +53,6 @@ buildPythonPackage rec {
|
||||||
# Required for python3 tests, along with glibcLocales
|
# Required for python3 tests, along with glibcLocales
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
|
|
||||||
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "aws_adfs" ];
|
pythonImportsCheck = [ "aws_adfs" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue