python2Packages.rpy2: fix python2 compatibility (#42634)
This commit is contained in:
parent
70212bb796
commit
b0181718cb
@ -2,6 +2,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPyPy
|
, isPyPy
|
||||||
|
, isPy27
|
||||||
, readline
|
, readline
|
||||||
, R
|
, R
|
||||||
, pcre
|
, pcre
|
||||||
@ -16,12 +17,18 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
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";
|
pname = "rpy2";
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version pname;
|
inherit version pname;
|
||||||
sha256 = "1b72958e683339ea0c3bd9f73738e9ece2da8da8008a10e2e0c68fc7864e9361";
|
sha256 = if isPy27 then
|
||||||
|
"162zki5c1apgv6qbafi7n66y4hgpgp43xag7q75qb6kv99ri6k80" # 2.8.x
|
||||||
|
else
|
||||||
|
"1b72958e683339ea0c3bd9f73738e9ece2da8da8008a10e2e0c68fc7864e9361"; # 2.9.x
|
||||||
};
|
};
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
readline
|
readline
|
||||||
|
Loading…
Reference in New Issue
Block a user