python2Packages.rpy2: fix python2 compatibility (#42634)

This commit is contained in:
Timo Kaufmann 2018-06-27 09:55:01 +02:00 committed by xeji
parent 70212bb796
commit b0181718cb

View file

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, isPyPy
, isPy27
, readline
, R
, pcre
@ -16,12 +17,18 @@
}:
buildPythonPackage rec {
version = "2.9.3";
version = if isPy27 then
"2.8.6" # python2 support dropped in 2.9.x
else
"2.9.3";
pname = "rpy2";
disabled = isPyPy;
src = fetchPypi {
inherit version pname;
sha256 = "1b72958e683339ea0c3bd9f73738e9ece2da8da8008a10e2e0c68fc7864e9361";
sha256 = if isPy27 then
"162zki5c1apgv6qbafi7n66y4hgpgp43xag7q75qb6kv99ri6k80" # 2.8.x
else
"1b72958e683339ea0c3bd9f73738e9ece2da8da8008a10e2e0c68fc7864e9361"; # 2.9.x
};
buildInputs = [
readline