Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, boto3, botocore, buildPythonPackage, click, configparser, fetchFromGitHub, fetchpatch, fido2, lxml, poetry-core, pyopenssl, pytestCheckHook, pythonOlder, requests, requests-kerberos, toml}:
buildPythonPackage rec { pname = "aws-adfs"; version = "2.2.1"; format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "venth"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-REJYuOGq22onMj4WcfA7i4/cG99UGZA9D99ESIKY1A8="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ boto3 botocore click configparser fido2 lxml pyopenssl requests requests-kerberos ];
patches = [ # Apply new fido2 api (See: venth/aws-adfs#243) (fetchpatch { url = "https://github.com/venth/aws-adfs/commit/09836d89256f3537270d760d8aa30ab9284725a8.diff"; hash = "sha256-pAAJvOa43BXtyWvV8hsLe2xqd5oI+vzndckRTRol61s="; }) ];
postPatch = '' substituteInPlace pyproject.toml \ --replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \ --replace 'botocore = ">=1.12.6"' 'botocore = "*"' '';
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"; license = licenses.psfl; maintainers = with maintainers; [ bhipple ]; };}