forked from mirrors/nixpkgs
Merge pull request #207898 from veprbl/pr/datatable_fix
python3Packages.datatable: 0.11.0 -> unstable-2022-12-15
This commit is contained in:
commit
7c72641b3c
|
@ -1,25 +1,29 @@
|
||||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib
|
||||||
, pipInstallHook, writeText
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pipInstallHook
|
||||||
|
, writeText
|
||||||
, blessed
|
, blessed
|
||||||
, docutils
|
, docutils
|
||||||
, libcxx
|
, libcxx
|
||||||
, llvm
|
, llvm
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, typesentry
|
, typesentry
|
||||||
, isPy310
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "datatable";
|
pname = "datatable";
|
||||||
version = "0.11.0";
|
# python 3.10+ support is not in the 1.0.0 release
|
||||||
disabled = pythonOlder "3.5";
|
version = "unstable-2022-12-15";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "h2oai";
|
||||||
sha256 = "19c602711e00f72e9ae296d8fa742d46da037c2d3a2d254bdf68f817a8da76bb";
|
repo = pname;
|
||||||
|
rev = "9522f0833d3e965656396de4fffebd882d39c25d";
|
||||||
|
hash = "sha256-lEXQwhx2msnJkkRrTkAwYttlYTISyH/Z7dSalqRrOhI=";
|
||||||
};
|
};
|
||||||
# authors seem to have created their own build system
|
|
||||||
format = "other";
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# tarball doesn't appear to have been shipped totally ready-to-build
|
# tarball doesn't appear to have been shipped totally ready-to-build
|
||||||
|
@ -27,17 +31,14 @@ buildPythonPackage rec {
|
||||||
--replace \
|
--replace \
|
||||||
'shell_cmd(["git"' \
|
'shell_cmd(["git"' \
|
||||||
'"0000000000000000000000000000000000000000" or shell_cmd(["git"'
|
'"0000000000000000000000000000000000000000" or shell_cmd(["git"'
|
||||||
echo '${version}' > VERSION.txt
|
# TODO revert back to use ${version} when bumping to the next stable release
|
||||||
|
echo '1.0' > VERSION.txt
|
||||||
|
|
||||||
# don't make assumptions about architecture
|
# don't make assumptions about architecture
|
||||||
sed -i '/-m64/d' ci/ext.py
|
sed -i '/-m64/d' ci/ext.py
|
||||||
'';
|
'';
|
||||||
DT_RELEASE = "1";
|
DT_RELEASE = "1";
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python ci/ext.py wheel
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ typesentry blessed ];
|
propagatedBuildInputs = [ typesentry blessed ];
|
||||||
buildInputs = [ llvm pipInstallHook ];
|
buildInputs = [ llvm pipInstallHook ];
|
||||||
checkInputs = [ docutils pytestCheckHook ];
|
checkInputs = [ docutils pytestCheckHook ];
|
||||||
|
@ -62,8 +63,5 @@ buildPythonPackage rec {
|
||||||
homepage = "https://github.com/h2oai/datatable";
|
homepage = "https://github.com/h2oai/datatable";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
# uses custom build system and adds -Wunused-variable -Werror
|
|
||||||
# warning: ‘dt::expr::doc_first’ defined but not used [-Wunused-variable]
|
|
||||||
broken = isPy310;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue