aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rpy2/default.nix
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-04-12 00:43:43 +0200
committerTimo Kaufmann <timokau@zoho.com>2018-04-13 22:42:18 +0200
commit2dcb1026a335c41df1b45a51b95ddc7af92120ba (patch)
tree4d23762b5a9255a9e94736ede53371bbcb1acb5c /pkgs/development/python-modules/rpy2/default.nix
parent19a6f0e02bfc2f5c605d57e7487fa84dc74981bf (diff)
rpy2: unbreak build
Diffstat (limited to '')
-rw-r--r--pkgs/development/python-modules/rpy2/default.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rpy2/default.nix b/pkgs/development/python-modules/rpy2/default.nix
new file mode 100644
index 000000000000..8db7ae3b3372
--- /dev/null
+++ b/pkgs/development/python-modules/rpy2/default.nix
@@ -0,0 +1,54 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, isPyPy
+, readline
+, R
+, pcre
+, lzma
+, bzip2
+, zlib
+, icu
+, singledispatch
+, six
+, jinja2
+, pytest
+}:
+
+buildPythonPackage rec {
+ version = "2.8.2";
+ pname = "rpy2";
+ disabled = isPyPy;
+ src = fetchPypi {
+ inherit version pname;
+ sha256 = "0k5jp6n1lfab7a6r5568aq31hg4fgf2cwy0hzvf3chp6yhyk26ic";
+ };
+ 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 ];
+ };
+ }