python310Packages.polars: 0.15.13 -> 0.17.11
This commit is contained in:
parent
16b3b0c53b
commit
89abc99d5b
2 changed files with 2706 additions and 15 deletions
2689
pkgs/development/python-modules/polars/Cargo.lock
generated
Normal file
2689
pkgs/development/python-modules/polars/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -4,15 +4,17 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, libiconv
|
, libiconv
|
||||||
, fetchzip
|
, fetchFromGitHub
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "polars";
|
pname = "polars";
|
||||||
version = "0.15.13";
|
version = "0.17.11";
|
||||||
rootSource = fetchzip {
|
rootSource = fetchFromGitHub {
|
||||||
url = "https://github.com/pola-rs/${pname}/archive/refs/tags/py-${version}.tar.gz";
|
owner = "pola-rs";
|
||||||
hash = "sha256-bk2opNLN3L+fkzXVfUU5O37UmA27ijmnAElCHjsuI+o=";
|
repo = "polars";
|
||||||
|
rev = "refs/tags/py-${version}";
|
||||||
|
hash = "sha256-zNp/77an9daUfHQ+HCaHtZzaq0TT9F+8aH3abrF7+YA=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
|
@ -21,28 +23,28 @@ buildPythonPackage {
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
src = rootSource;
|
src = rootSource;
|
||||||
|
|
||||||
# Cargo.lock files 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
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cd py-polars
|
cd py-polars
|
||||||
sed -i 's/version = "0.15.11"/version = "${version}"/g' Cargo.lock
|
#sed -i 's/version = "0.17.11"/version = "${version}"/g' Cargo.lock
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
cargoDeps = rustPlatform.importCargoLock {
|
||||||
src = rootSource;
|
lockFile = ./Cargo.lock;
|
||||||
preBuild = ''
|
outputHashes = {
|
||||||
cd py-polars
|
"arrow2-0.17.0" = "sha256-jjrwTP+ZKem9lyrmAWJ+t9cZBkGqAR1VlgNFXDtx1LA=";
|
||||||
'';
|
"jsonpath_lib-0.3.0" = "sha256-NKszYpDGG8VxfZSMbsTlzcMGFHBOUeFojNw4P2wM3qk=";
|
||||||
name = "${pname}-${version}";
|
"simd-json-0.7.0" = "sha256-tlz6my4vhUQIArPonJml8zIyk1sbbDSORKp3cmPUUSI=";
|
||||||
hash = "sha256-u7ascftUPz8K+gWwjjxdXXFJf++M+8P9QE/KVJkO5DM=";
|
};
|
||||||
};
|
};
|
||||||
cargoRoot = "py-polars";
|
cargoRoot = "py-polars";
|
||||||
|
|
||||||
# Revisit this whenever package or Rust is upgraded
|
# Revisit this whenever package or Rust is upgraded
|
||||||
RUSTC_BOOTSTRAP = 1;
|
RUSTC_BOOTSTRAP = 1;
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
|
||||||
|
|
||||||
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue