587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{ lib
|
|
, boto3
|
|
, botocore
|
|
, buildPythonPackage
|
|
, click
|
|
, configparser
|
|
, fetchFromGitHub
|
|
, fido2
|
|
, lxml
|
|
, poetry-core
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, requests
|
|
, requests-kerberos
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-adfs";
|
|
version = "2.11.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "venth";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ZzQ92VBa8CApd0WkfPrUZsEZICK2fhwmt45P2sx2mK0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"configparser"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boto3
|
|
botocore
|
|
click
|
|
configparser
|
|
fido2
|
|
lxml
|
|
pyopenssl
|
|
requests
|
|
requests-kerberos
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
toml
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"aws_adfs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command line tool to ease AWS CLI authentication against ADFS";
|
|
mainProgram = "aws-adfs";
|
|
homepage = "https://github.com/venth/aws-adfs";
|
|
changelog = "https://github.com/venth/aws-adfs/releases/tag/v${version}";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
};
|
|
}
|