summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2022-12-26 20:36:29 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-01-11 22:53:15 +0000
commit240ebf9b75847cb685db645e2c7b5c1ad91de165 (patch)
treea29793cfbee67c7e67b6bbcf0fe2660135e5c9cc
parentgdal: 3.6.1 -> 3.6.2 (diff)
downloadnixpkgs-origin/backport-207898-to-release-22.11.tar.gz
python3Packages.datatable: 0.11.0 -> unstable-2022-12-15origin/backport-207898-to-release-22.11
This fixes the packages for python 3.10+. (cherry picked from commit 4b3656046b2d00fef857d731f871947377392dd0)
-rw-r--r--pkgs/development/python-modules/datatable/default.nix34
1 files changed, 16 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/datatable/default.nix b/pkgs/development/python-modules/datatable/default.nix
index 2ebb488aba77..a2fb8aba71c8 100644
--- a/pkgs/development/python-modules/datatable/default.nix
+++ b/pkgs/development/python-modules/datatable/default.nix
@@ -1,25 +1,29 @@
-{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder
-, pipInstallHook, writeText
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, pipInstallHook
+, writeText
, blessed
, docutils
, libcxx
, llvm
, pytestCheckHook
, typesentry
-, isPy310
}:
buildPythonPackage rec {
pname = "datatable";
- version = "0.11.0";
- disabled = pythonOlder "3.5";
+ # python 3.10+ support is not in the 1.0.0 release
+ version = "unstable-2022-12-15";
+ format = "pyproject";
- src = fetchPypi {
- inherit pname version;
- sha256 = "19c602711e00f72e9ae296d8fa742d46da037c2d3a2d254bdf68f817a8da76bb";
+ src = fetchFromGitHub {
+ owner = "h2oai";
+ repo = pname;
+ rev = "9522f0833d3e965656396de4fffebd882d39c25d";
+ hash = "sha256-lEXQwhx2msnJkkRrTkAwYttlYTISyH/Z7dSalqRrOhI=";
};
- # authors seem to have created their own build system
- format = "other";
postPatch = ''
# tarball doesn't appear to have been shipped totally ready-to-build
@@ -27,17 +31,14 @@ buildPythonPackage rec {
--replace \
'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
sed -i '/-m64/d' ci/ext.py
'';
DT_RELEASE = "1";
- buildPhase = ''
- python ci/ext.py wheel
- '';
-
propagatedBuildInputs = [ typesentry blessed ];
buildInputs = [ llvm pipInstallHook ];
checkInputs = [ docutils pytestCheckHook ];
@@ -62,8 +63,5 @@ buildPythonPackage rec {
homepage = "https://github.com/h2oai/datatable";
license = licenses.mpl20;
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;
};
}