From 1ccbd15b10220f51f9821d200a8c31425927b269 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Apr 2021 11:39:16 +0200 Subject: [PATCH] python3Packages.ntlm-auth: fix build --- .../python-modules/ntlm-auth/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/ntlm-auth/default.nix b/pkgs/development/python-modules/ntlm-auth/default.nix index 080734bd25e8..d56fccde051d 100644 --- a/pkgs/development/python-modules/ntlm-auth/default.nix +++ b/pkgs/development/python-modules/ntlm-auth/default.nix @@ -1,10 +1,10 @@ { lib , buildPythonPackage +, cryptography , fetchFromGitHub , mock -, pytest +, pytestCheckHook , requests -, unittest2 , six }: @@ -19,13 +19,18 @@ buildPythonPackage rec { sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409"; }; - checkInputs = [ mock pytest requests unittest2 ]; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + cryptography + six + ]; - # Functional tests require networking - checkPhase = '' - py.test --ignore=tests/functional/test_iis.py - ''; + checkInputs = [ + mock + pytestCheckHook + requests + ]; + + pythonImportsCheck = [ "ntlm_auth" ]; meta = with lib; { description = "Calculates NTLM Authentication codes";