future module needs to be imported even if we are running under Python 3.
This commit is contained in:
parent
55af60a23f
commit
29540286ec
@ -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
|
||||
'');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user