mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-11 18:17:14 +00:00
python3Packages.polars: 0.18.13 -> 0.19.12
This commit is contained in:
parent
9c3d82c6ef
commit
599d825fd0
1157
pkgs/development/python-modules/polars/Cargo.lock
generated
1157
pkgs/development/python-modules/polars/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
13
pkgs/development/python-modules/polars/all_horizontal.patch
Normal file
13
pkgs/development/python-modules/polars/all_horizontal.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/crates/polars-lazy/src/frame/mod.rs b/crates/polars-lazy/src/frame/mod.rs
|
||||||
|
index 2d2ede651..be24b8809 100644
|
||||||
|
--- a/crates/polars-lazy/src/frame/mod.rs
|
||||||
|
+++ b/crates/polars-lazy/src/frame/mod.rs
|
||||||
|
@@ -25,7 +25,7 @@ pub use parquet::*;
|
||||||
|
use polars_core::frame::explode::MeltArgs;
|
||||||
|
use polars_core::prelude::*;
|
||||||
|
use polars_io::RowCount;
|
||||||
|
-use polars_plan::dsl::all_horizontal;
|
||||||
|
+use polars_plan::dsl::functions::all_horizontal;
|
||||||
|
pub use polars_plan::frame::{AllowedOptimizations, OptState};
|
||||||
|
use polars_plan::global::FETCH_ROWS;
|
||||||
|
#[cfg(any(feature = "ipc", feature = "parquet", feature = "csv"))]
|
@ -3,6 +3,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
, cmake
|
||||||
, libiconv
|
, libiconv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
@ -12,12 +13,12 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "polars";
|
pname = "polars";
|
||||||
version = "0.18.13";
|
version = "0.19.12";
|
||||||
rootSource = fetchFromGitHub {
|
rootSource = fetchFromGitHub {
|
||||||
owner = "pola-rs";
|
owner = "pola-rs";
|
||||||
repo = "polars";
|
repo = "polars";
|
||||||
rev = "refs/tags/py-${version}";
|
rev = "refs/tags/py-${version}";
|
||||||
hash = "sha256-kV30r2wmswpCUmMRaFsCOeRrlTN5/PU0ogaU2JIHq0E=";
|
hash = "sha256-6tn3Q6oZfMjgQ5l5xCFnGimLSDLOjTWCW5uEbi6yFZY=";
|
||||||
};
|
};
|
||||||
rust-jemalloc-sys' = rust-jemalloc-sys.override {
|
rust-jemalloc-sys' = rust-jemalloc-sys.override {
|
||||||
jemalloc = jemalloc.override {
|
jemalloc = jemalloc.override {
|
||||||
@ -31,6 +32,13 @@ buildPythonPackage {
|
|||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
src = rootSource;
|
src = rootSource;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# workaround for apparent rustc bug
|
||||||
|
# remove when we're at Rust 1.73
|
||||||
|
# https://github.com/pola-rs/polars/issues/12050
|
||||||
|
./all_horizontal.patch
|
||||||
|
];
|
||||||
|
|
||||||
# Cargo.lock file is sometimes behind actual release which throws an error,
|
# Cargo.lock file is sometimes behind actual release which throws an error,
|
||||||
# thus the `sed` command
|
# thus the `sed` command
|
||||||
# Make sure to check that the right substitutions are made when updating the package
|
# Make sure to check that the right substitutions are made when updating the package
|
||||||
@ -42,9 +50,7 @@ buildPythonPackage {
|
|||||||
cargoDeps = rustPlatform.importCargoLock {
|
cargoDeps = rustPlatform.importCargoLock {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
"arrow2-0.17.3" = "sha256-pM6lNjMCpUzC98IABY+M23lbLj0KMXDefgBMjUPjDlg=";
|
|
||||||
"jsonpath_lib-0.3.0" = "sha256-NKszYpDGG8VxfZSMbsTlzcMGFHBOUeFojNw4P2wM3qk=";
|
"jsonpath_lib-0.3.0" = "sha256-NKszYpDGG8VxfZSMbsTlzcMGFHBOUeFojNw4P2wM3qk=";
|
||||||
"simd-json-0.10.0" = "sha256-0q/GhL7PG5SLgL0EETPqe8kn6dcaqtyL+kLU9LL+iQs=";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cargoRoot = "py-polars";
|
cargoRoot = "py-polars";
|
||||||
@ -54,7 +60,16 @@ buildPythonPackage {
|
|||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
|
||||||
|
|
||||||
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
# needed for libz-ng-sys
|
||||||
|
# TODO: use pkgs.zlib-ng
|
||||||
|
cmake
|
||||||
|
] ++ (with rustPlatform; [
|
||||||
|
cargoSetupHook
|
||||||
|
maturinBuildHook
|
||||||
|
]);
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
rust-jemalloc-sys'
|
rust-jemalloc-sys'
|
||||||
|
Loading…
Reference in New Issue
Block a user