future module needs to be imported even if we are running under Python 3.

This commit is contained in:
Glenn Searby 2017-07-24 11:42:49 +01:00
parent 55af60a23f
commit 29540286ec

View file

@ -15,13 +15,10 @@ buildPythonPackage rec {
disabled = (pythonOlder "2.7");
propagatedBuildInputs = [ requests ]
++ stdenv.lib.optionals (!isPy3k) [ future ]
propagatedBuildInputs = [ requests future ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
postPatch = (stdenv.lib.optionalString (isPy3k) ''
sed -i -e '/"future",/d' setup.py
'') + (stdenv.lib.optionalString (!pythonOlder "3.4") ''
postPatch = (stdenv.lib.optionalString (!pythonOlder "3.4") ''
sed -i -e '/"enum34",/d' setup.py
'');