python3Packages.simple-salesforce: fix build

Configure explicit test phase.

authored by

Martin Weinelt and committed by
Jonathan Ringer
4f64f6d8 12493f27

+7 -10
+7 -10
pkgs/development/python-modules/simple-salesforce/default.nix
··· 1 1 { lib 2 2 , fetchFromGitHub 3 3 , buildPythonPackage 4 + , authlib 4 5 , requests 5 - , pyopenssl 6 - , cryptography 7 - , idna 8 6 , mock 9 7 , isPy27 10 8 , nose ··· 24 22 }; 25 23 26 24 propagatedBuildInputs = [ 25 + authlib 27 26 requests 28 - pyopenssl 29 - cryptography 30 - idna 31 27 ]; 32 28 33 29 checkInputs = [ 34 30 nose 35 31 pytz 36 32 responses 37 - ] ++ lib.optionals isPy27 [ mock ]; 33 + ]; 38 34 39 - postPatch = '' 40 - substituteInPlace setup.py \ 41 - --replace "mock==1.0.1" "mock" 35 + checkPhase = '' 36 + runHook preCheck 37 + nosetests -v 38 + runHook postCheck 42 39 ''; 43 40 44 41 meta = with lib; {