python311Packages.polars: 0.19.12 -> 0.20.0

Changelog: https://github.com/pola-rs/polars/releases/tag/py-0.20.0
This commit is contained in:
Fabian Affolter 2023-12-18 09:17:11 +01:00
parent 1a5412e140
commit 99de747e11

View File

@ -13,7 +13,7 @@
}:
let
pname = "polars";
version = "0.19.12";
version = "0.20.0";
rootSource = fetchFromGitHub {
owner = "pola-rs";
repo = "polars";
@ -28,8 +28,10 @@ let
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = rootSource;
# Cargo.lock file is sometimes behind actual release which throws an error,
@ -46,12 +48,15 @@ buildPythonPackage {
"jsonpath_lib-0.3.0" = "sha256-NKszYpDGG8VxfZSMbsTlzcMGFHBOUeFojNw4P2wM3qk=";
};
};
cargoRoot = "py-polars";
# Revisit this whenever package or Rust is upgraded
RUSTC_BOOTSTRAP = 1;
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
typing-extensions
];
dontUseCmakeConfigure = true;
@ -71,7 +76,6 @@ buildPythonPackage {
darwin.apple_sdk.frameworks.Security
];
pythonImportsCheck = [ "polars" ];
# nativeCheckInputs = [
# pytestCheckHook
# fixtures
@ -82,9 +86,14 @@ buildPythonPackage {
# pydot
# ];
pythonImportsCheck = [
"polars"
];
meta = with lib; {
description = "Fast multi-threaded DataFrame library in Rust | Python | Node.js ";
description = "Fast multi-threaded DataFrame library";
homepage = "https://github.com/pola-rs/polars";
changelog = "https://github.com/pola-rs/polars/releases/tag/py-${version}";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};