about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tables
diff options
context:
space:
mode:
authorJosef Kemetmueller <josef.kemetmueller@aon.at>2017-05-06 10:45:34 +0200
committerJosef Kemetmueller <josef.kemetmueller@aon.at>2017-05-06 10:45:34 +0200
commitfacf9a6d22966c9ab664e669b7a68f814dc2337f (patch)
tree734cba89d72abc0f96ca3d3d827616bad334136c /pkgs/development/python-modules/tables
parenta2569f5fd63bd1867ba6da1a2207560384dfa7a3 (diff)
downloadnixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar.gz
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar.bz2
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar.lz
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar.xz
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.tar.zst
nixlib-facf9a6d22966c9ab664e669b7a68f814dc2337f.zip
pytables: Fix build on darwin by using external c-blosc
Using the pytables internal c-blosc lead to a compilation error on
darwin, as the installer uses cpuinfo.get_cpu_info(), which
(unexpectedly for pytables) returns None in the current darwin-python.
Diffstat (limited to 'pkgs/development/python-modules/tables')
-rw-r--r--pkgs/development/python-modules/tables/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix
index e5de7c4e2a42..7faad8ec4f46 100644
--- a/pkgs/development/python-modules/tables/default.nix
+++ b/pkgs/development/python-modules/tables/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, python, buildPythonPackage
-, cython, bzip2, lzo, numpy, numexpr, hdf5, six }:
+, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc }:
 
 buildPythonPackage rec {
   version = "3.3.0";
@@ -10,7 +10,7 @@ buildPythonPackage rec {
     sha256 = "0b4211s0zzdmh74k49ss0m9lc2ql2iazq2aa95ams6h45vqcr0w3";
   };
 
-  buildInputs = [ hdf5 cython bzip2 lzo ];
+  buildInputs = [ hdf5 cython bzip2 lzo c-blosc ];
   propagatedBuildInputs = [ numpy numexpr six ];
 
   # The setup script complains about missing run-paths, but they are
@@ -19,6 +19,7 @@ buildPythonPackage rec {
     [ "--hdf5=${hdf5}"
       "--lzo=${lzo}"
       "--bzip2=${bzip2.dev}"
+      "--blosc=${c-blosc}"
     ];
 
   # Run the test suite.