pythonPackages.protobuf: disable tests for python2

setupwheels>=41.4 no longer collects the tests correctly
This commit is contained in:
Jonathan Ringer 2019-10-17 08:59:01 -07:00 committed by Frederik Rietdijk
parent a1a8c96d8f
commit cd517668c7

View File

@ -1,12 +1,13 @@
{ stdenv, fetchpatch, python, buildPythonPackage, isPy37
, protobuf, google_apputils, pyext, libcxx
, protobuf, google_apputils, pyext, libcxx, isPy27
, disabled, doCheck ? true }:
with stdenv.lib;
buildPythonPackage {
inherit (protobuf) name src version;
inherit disabled doCheck;
inherit disabled;
doCheck = doCheck && !isPy27; # setuptools>=41.4 no longer collects correctly on python2
NIX_CFLAGS_COMPILE =
# work around python distutils compiling C++ with $CC