1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
73 lines
1.2 KiB
Nix
73 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
boto3,
|
|
botocore,
|
|
buildPythonPackage,
|
|
click,
|
|
configparser,
|
|
fetchFromGitHub,
|
|
fido2,
|
|
lxml,
|
|
poetry-core,
|
|
pyopenssl,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-kerberos,
|
|
toml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-adfs";
|
|
version = "2.12.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "venth";
|
|
repo = "aws-adfs";
|
|
tag = "v${version}";
|
|
hash = "sha256-U1ptI/VynHArJ1SwX4LanHB0f4U38YZO9XDCXcLBu+s=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"configparser"
|
|
"fido2"
|
|
"lxml"
|
|
"requests-kerberos"
|
|
];
|
|
|
|
dependencies = [
|
|
boto3
|
|
botocore
|
|
click
|
|
configparser
|
|
fido2
|
|
lxml
|
|
pyopenssl
|
|
requests
|
|
requests-kerberos
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
toml
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pythonImportsCheck = [ "aws_adfs" ];
|
|
|
|
meta = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.psfl;
|
|
mainProgram = "aws-adfs";
|
|
};
|
|
}
|