3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/datatable/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, buildPythonPackage, fetchPypi, substituteAll, pythonOlder
, blessed
, docutils
, libcxx
, libcxxabi
2019-06-03 16:12:25 +01:00
, llvm
, openmp
2019-06-03 16:12:25 +01:00
, pytest
, typesentry
2019-06-03 16:12:25 +01:00
}:
buildPythonPackage rec {
pname = "datatable";
version = "0.9.0";
disabled = pythonOlder "3.5";
2019-06-03 16:12:25 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "1shwjkm9nyaj6asn57vwdd74pn13pggh14r6dzv729lzxm7nm65f";
2019-06-03 16:12:25 +01:00
};
patches = lib.optionals stdenv.isDarwin [
# Replace the library auto-detection with hardcoded paths.
(substituteAll {
src = ./hardcode-library-paths.patch;
libomp_dylib = "${lib.getLib openmp}/lib/libomp.dylib";
libcxx_dylib = "${lib.getLib libcxx}/lib/libc++.1.dylib";
libcxxabi_dylib = "${lib.getLib libcxxabi}/lib/libc++abi.dylib";
})
];
2019-06-03 16:12:25 +01:00
propagatedBuildInputs = [ typesentry blessed ];
buildInputs = [ llvm ] ++ lib.optionals stdenv.isDarwin [ openmp ];
checkInputs = [ docutils pytest ];
2019-06-03 16:12:25 +01:00
LLVM = llvm;
checkPhase = ''
mv datatable datatable.hidden
pytest
'';
meta = with lib; {
description = "data.table for Python";
homepage = "https://github.com/h2oai/datatable";
license = licenses.mpl20;
maintainers = with maintainers; [ abbradar ];
};
}