python3Packages.simple-salesforce: fix build

Configure explicit test phase.
This commit is contained in:
Martin Weinelt 2021-05-07 20:52:42 +02:00 committed by Jonathan Ringer
parent 12493f272b
commit 4f64f6d889

View file

@ -1,10 +1,8 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, authlib
, requests , requests
, pyopenssl
, cryptography
, idna
, mock , mock
, isPy27 , isPy27
, nose , nose
@ -24,21 +22,20 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
authlib
requests requests
pyopenssl
cryptography
idna
]; ];
checkInputs = [ checkInputs = [
nose nose
pytz pytz
responses responses
] ++ lib.optionals isPy27 [ mock ]; ];
postPatch = '' checkPhase = ''
substituteInPlace setup.py \ runHook preCheck
--replace "mock==1.0.1" "mock" nosetests -v
runHook postCheck
''; '';
meta = with lib; { meta = with lib; {