1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/rpy2/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2018-04-11 23:43:43 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, readline
, R
, pcre
, lzma
, bzip2
, zlib
, icu
, singledispatch
, six
, jinja2
, pytest
}:
buildPythonPackage rec {
2018-06-12 17:47:06 +01:00
version = "2.9.3";
2018-04-11 23:43:43 +01:00
pname = "rpy2";
disabled = isPyPy;
src = fetchPypi {
inherit version pname;
2018-06-12 17:47:06 +01:00
sha256 = "1b72958e683339ea0c3bd9f73738e9ece2da8da8008a10e2e0c68fc7864e9361";
2018-04-11 23:43:43 +01:00
};
buildInputs = [
readline
R
pcre
lzma
bzip2
zlib
icu
];
propagatedBuildInputs = [
singledispatch
six
jinja2
];
checkInputs = [ pytest ];
# Tests fail with `assert not _relpath.startswith('..'), "Path must be within the project"`
# in the unittest `loader.py`. I don't know what causes this.
doCheck = false;
# without this tests fail when looking for libreadline.so
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
meta = {
homepage = http://rpy.sourceforge.net/rpy2;
description = "Python interface to R";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ joelmo ];
};
}