diff options
author | Glenn Searby <glenn.searby@cse.org.uk> | 2017-07-24 11:42:49 +0100 |
---|---|---|
committer | Glenn Searby <glenn.searby@cse.org.uk> | 2017-07-24 11:42:49 +0100 |
commit | 29540286ec2781f81801163d0ccd12f0fdc0ebc6 (patch) | |
tree | 55189d9e9e35eac99ae7dfd693a6e209148a94bd /pkgs/development/python-modules/linode-api | |
parent | 55af60a23f178459afd358bba3db9807c72a5a35 (diff) | |
download | nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar.gz nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar.bz2 nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar.lz nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar.xz nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.tar.zst nixlib-29540286ec2781f81801163d0ccd12f0fdc0ebc6.zip |
future module needs to be imported even if we are running under Python 3.
Diffstat (limited to 'pkgs/development/python-modules/linode-api')
-rw-r--r-- | pkgs/development/python-modules/linode-api/default.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/linode-api/default.nix b/pkgs/development/python-modules/linode-api/default.nix index 869d4d50ea4e..e754bf5d4a7c 100644 --- a/pkgs/development/python-modules/linode-api/default.nix +++ b/pkgs/development/python-modules/linode-api/default.nix @@ -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 ''); |