python3Packages.simple-salesforce: fix build
Configure explicit test phase.
This commit is contained in:
parent
12493f272b
commit
4f64f6d889
@ -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; {
|
||||||
|
Loading…
Reference in New Issue
Block a user