python3Packages.polars: 1.40.1 -> 1.41.2 (#534355)
This commit is contained in:
@@ -36,33 +36,31 @@
|
||||
assert builtins.elem "--disable-initial-exec-tls" jemalloc'.configureFlags;
|
||||
jemalloc',
|
||||
|
||||
polars,
|
||||
python,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.40.1";
|
||||
|
||||
# Hide symbols to prevent accidental use
|
||||
rust-jemalloc-sys = throw "polars: use polarsMemoryAllocator over rust-jemalloc-sys";
|
||||
jemalloc = throw "polars: use polarsMemoryAllocator over jemalloc";
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "polars";
|
||||
inherit version;
|
||||
version = "1.41.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pola-rs";
|
||||
repo = "polars";
|
||||
tag = "py-${version}";
|
||||
hash = "sha256-QlrEYwoYPALELK3UGBC/92vCBIzFrigJAwU8qxn7Pys=";
|
||||
tag = "py-${finalAttrs.version}";
|
||||
hash = "sha256-Wys56Tj75+7sNNwi3U5a62Wwkddep/W1MjtAHOuDdwc=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit pname version src;
|
||||
hash = "sha256-rmCJ5SY5okvkgfd63yPDO2YOksqAWgKa9nqxTqP7Grw=";
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-tmc8n0TVaXmc4C8XXTgPVsTRs0C/V+88f6T1vOamt00=";
|
||||
};
|
||||
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
@@ -128,7 +126,7 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
(python.withPackages (ps: [
|
||||
ps.pyarrow
|
||||
polars
|
||||
finalAttrs.finalPackage
|
||||
]))
|
||||
];
|
||||
}
|
||||
@@ -145,7 +143,7 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
(python.withPackages (ps: [
|
||||
ps.pyarrow
|
||||
polars
|
||||
finalAttrs.finalPackage
|
||||
]))
|
||||
];
|
||||
failureHook = ''
|
||||
@@ -159,13 +157,13 @@ buildPythonPackage rec {
|
||||
EOF
|
||||
'';
|
||||
passthru.tests.pytest = stdenv.mkDerivation {
|
||||
pname = "${polars.pname}-pytest";
|
||||
pname = "${finalAttrs.pname}-pytest";
|
||||
|
||||
inherit (polars) version src;
|
||||
inherit (finalAttrs) version src;
|
||||
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
|
||||
sourceRoot = "${src.name}/py-polars";
|
||||
sourceRoot = "${finalAttrs.src.name}/py-polars";
|
||||
postPatch = ''
|
||||
for f in * ; do
|
||||
[[ "$f" == "tests" ]] || \
|
||||
@@ -183,7 +181,7 @@ buildPythonPackage rec {
|
||||
checkPhase = "pytestCheckPhase";
|
||||
nativeBuildInputs = [
|
||||
(python.withPackages (ps: [
|
||||
polars
|
||||
finalAttrs.finalPackage
|
||||
ps.aiosqlite
|
||||
ps.altair
|
||||
ps.boto3
|
||||
@@ -217,7 +215,6 @@ buildPythonPackage rec {
|
||||
];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-codspeed
|
||||
pytest-cov-stub
|
||||
pytest-xdist
|
||||
pytest-benchmark
|
||||
@@ -292,7 +289,7 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Dataframes powered by a multithreaded, vectorized query engine, written in Rust";
|
||||
homepage = "https://github.com/pola-rs/polars";
|
||||
changelog = "https://github.com/pola-rs/polars/releases/tag/py-${version}";
|
||||
changelog = "https://github.com/pola-rs/polars/releases/tag/py-${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
happysalada
|
||||
@@ -301,4 +298,4 @@ buildPythonPackage rec {
|
||||
mainProgram = "polars";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user