Merge pull request #307343 from lucasew/polars/minor-refactor

python3Packages.polars: minor refactor
This commit is contained in:
Yt 2024-04-28 01:39:15 +00:00 committed by GitHub
commit 32a79f412e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,28 +11,28 @@
, rust-jemalloc-sys , rust-jemalloc-sys
, darwin , darwin
}: }:
let let
pname = "polars";
version = "0.20.15";
rootSource = fetchFromGitHub {
owner = "pola-rs";
repo = "polars";
rev = "refs/tags/py-${version}";
hash = "sha256-N/VIi0s5unYWqlR5Mpaq9cqXl2ccbzWPuOtE2UbmQw8=";
};
rust-jemalloc-sys' = rust-jemalloc-sys.override { rust-jemalloc-sys' = rust-jemalloc-sys.override {
jemalloc = jemalloc.override { jemalloc = jemalloc.override {
disableInitExecTls = true; disableInitExecTls = true;
}; };
}; };
in in
buildPythonPackage {
inherit pname version; buildPythonPackage rec {
pname = "polars";
version = "0.20.15";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = rootSource; src = fetchFromGitHub {
owner = "pola-rs";
repo = "polars";
rev = "refs/tags/py-${version}";
hash = "sha256-N/VIi0s5unYWqlR5Mpaq9cqXl2ccbzWPuOtE2UbmQw8=";
};
# 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