From 1a4f4b884999f60d1f2518b7a3ea968285ada140 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Apr 2021 12:25:31 +0200 Subject: [PATCH] python3Packages.aws-adfs: fix build --- .../python-modules/aws-adfs/default.nix | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aws-adfs/default.nix b/pkgs/development/python-modules/aws-adfs/default.nix index efe4780c0a4f..2f9cd1a0b19c 100644 --- a/pkgs/development/python-modules/aws-adfs/default.nix +++ b/pkgs/development/python-modules/aws-adfs/default.nix @@ -1,6 +1,19 @@ -{ lib, buildPythonPackage, fetchPypi -, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore -, requests, requests-kerberos, click, configparser, fido2, isPy27 }: +{ lib +, botocore +, buildPythonPackage +, click +, configparser +, fetchPypi +, fido2 +, glibcLocales +, isPy27 +, lxml +, mock +, pyopenssl +, pytestCheckHook +, requests +, requests-kerberos +}: buildPythonPackage rec { pname = "aws-adfs"; @@ -12,8 +25,25 @@ buildPythonPackage rec { sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55"; }; + propagatedBuildInputs = [ + botocore + click + configparser + fido2 + lxml + pyopenssl + requests + requests-kerberos + ]; + + checkInputs = [ + glibcLocales + mock + pytestCheckHook + ]; + # Relax version constraint - patchPhase = '' + postPatch = '' sed -i 's/coverage < 4/coverage/' setup.py ''; @@ -23,9 +53,6 @@ buildPythonPackage rec { # Required for python3 tests, along with glibcLocales LC_ALL = "en_US.UTF-8"; - checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ]; - propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ]; - pythonImportsCheck = [ "aws_adfs" ]; meta = with lib; {