python2Packages.freezegun: disable tests for python2

Contains python3 exclusive code
This commit is contained in:
Jonathan Ringer 2020-06-16 12:56:22 -07:00
parent b6654d9d6c
commit 393f5fc5f1

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27
, dateutil , dateutil
, six , six
, mock , mock
@ -19,6 +20,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ dateutil six ]; propagatedBuildInputs = [ dateutil six ];
checkInputs = [ mock nose pytest ]; checkInputs = [ mock nose pytest ];
# contains python3 specific code
doCheck = !isPy27;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "FreezeGun: Let your Python tests travel through time"; description = "FreezeGun: Let your Python tests travel through time";