My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/aws-adfs/default.nix

74 lines
1.2 KiB

{ lib
, boto3
, botocore
, buildPythonPackage
, click
, configparser
, fetchFromGitHub
, fido2
, lxml
, poetry-core
, pyopenssl
, pytestCheckHook
, pythonOlder
, requests
, requests-kerberos
, toml
}:
buildPythonPackage rec {
pname = "aws-adfs";
version = "2.0.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "venth";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-/cOJ8k8YuwTGEXrNuPFAYvDyDKERMJf3o3nRkDLkrJE=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
boto3
botocore
click
configparser
fido2
lxml
pyopenssl
requests
requests-kerberos
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \
--replace 'botocore = ">=1.12.6"' 'botocore = "*"'
'';
checkInputs = [
pytestCheckHook
toml
];
preCheck = ''
export HOME=$(mktemp -d);
'';
pythonImportsCheck = [
"aws_adfs"
];
meta = with lib; {
description = "Command line tool to ease AWS CLI authentication against ADFS";
homepage = "https://github.com/venth/aws-adfs";
license = licenses.psfl;
maintainers = with maintainers; [ bhipple ];
};
}