depot/third_party/nixpkgs/pkgs/development/python-modules/aws-adfs/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

75 lines
1.2 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.10.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "venth";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-CUWjD5b62pSvvMS5CFZix9GL4z0EhkGttxgfeOLKHqY=";
};
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";
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 ];
};
}