From 99de747e114427ccc5b31740a6f35bb59f52c2b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Dec 2023 09:17:11 +0100 Subject: [PATCH] python311Packages.polars: 0.19.12 -> 0.20.0 Changelog: https://github.com/pola-rs/polars/releases/tag/py-0.20.0 --- .../python-modules/polars/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/polars/default.nix b/pkgs/development/python-modules/polars/default.nix index 991a3a3684cd..d967ca27c8ff 100644 --- a/pkgs/development/python-modules/polars/default.nix +++ b/pkgs/development/python-modules/polars/default.nix @@ -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 ]; };