diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-10-27 17:18:24 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-10-27 17:18:24 +0100 |
commit | 8607aa5c39165dbbf59cf6853e483249991088f3 (patch) | |
tree | af2f3ddc20a548dcc4d38d090f6ae8676b30add6 /pkgs/development/python-modules | |
parent | d9c056e6fa7964ade08c2b1b71257f73bcc8c4c1 (diff) | |
download | nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar.gz nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar.bz2 nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar.lz nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar.xz nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.tar.zst nixpkgs-8607aa5c39165dbbf59cf6853e483249991088f3.zip |
python38Packages.tables: fix build for 3.8
We need to regenerate the C code with Cython.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/tables/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index 444901d9aaf..b664b882b28 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -6,16 +6,27 @@ with stdenv.lib; buildPythonPackage rec { version = "3.6.0"; pname = "tables"; - disabled = isPy38; # unable to build, remove with next bump. src = fetchPypi { inherit pname version; sha256 = "0k9xc0b49j311r6yayw7wzjay6ch3jznijhzc4x33yv490hqhd6v"; }; - buildInputs = [ hdf5 cython bzip2 lzo c-blosc ]; + nativeBuildInputs = [ cython ]; + + buildInputs = [ hdf5 bzip2 lzo c-blosc ]; propagatedBuildInputs = [ numpy numexpr six mock ]; + # When doing `make distclean`, ignore docs + postPatch = '' + substituteInPlace Makefile --replace "src doc" "src" + ''; + + # Regenerate C code with Cython + preBuild = '' + make distclean + ''; + # The setup script complains about missing run-paths, but they are # actually set. setupPyBuildFlags = [ |