git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.simple-salesforce: fix build

Configure explicit test phase.

commit4f64f6d889b6d83f0c55ea37b87a1d4219b105da authorMartin Weinelt <hexa@darmstadt.ccc.de> dateFri 7 May 2021, 20:52 (6 years ago) parent12493f2
1 file changed+7−10
pkgs/development/python-modules/simple-salesforce/default.nix+7−10
pkgs/development/python-modules/simple-salesforce/default.nix+7−10
@@ -1,10 +1,8 @@
11{ lib
22, fetchFromGitHub
33, buildPythonPackage
4+, authlib
45, requests
5−, pyopenssl
6−, cryptography
7−, idna
86, mock
97, isPy27
108, nose
@@ -24,21 +22,20 @@ buildPythonPackage rec {
2422 };
2523
2624 propagatedBuildInputs = [
25+ authlib
2726 requests
28− pyopenssl
29− cryptography
30− idna
3127 ];
3228
3329 checkInputs = [
3430 nose
3531 pytz
3632 responses
37− ] ++ lib.optionals isPy27 [ mock ];
33+ ];
3834
39− postPatch = ''
40− substituteInPlace setup.py \
41− --replace "mock==1.0.1" "mock"
35+ checkPhase = ''
36+ runHook preCheck
37+ nosetests -v
38+ runHook postCheck
4239 '';
4340
4441 meta = with lib; {