diff --git a/pkgs/development/python-modules/linode-api/default.nix b/pkgs/development/python-modules/linode-api/default.nix index ce46b6daaffa..869d4d50ea4e 100644 --- a/pkgs/development/python-modules/linode-api/default.nix +++ b/pkgs/development/python-modules/linode-api/default.nix @@ -15,11 +15,16 @@ buildPythonPackage rec { disabled = (pythonOlder "2.7"); - buildInputs = []; propagatedBuildInputs = [ requests ] ++ stdenv.lib.optionals (!isPy3k) [ 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") '' + sed -i -e '/"enum34",/d' setup.py + ''); + src = fetchPypi { inherit pname version; sha256 = "1lfqsll3wv1wzn98ymmcbw0yawj8ab3mxniws6kaxf99jd4a0xp4";