pythonPackages.polars: init at 0.13.19

main
happysalada 2 years ago committed by Yt
parent 4e1d02ce13
commit 41234df5c6
  1. 57
      pkgs/development/python-modules/polars/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,57 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, rustPlatform
, libiconv
, fetchzip
}:
let
pname = "polars";
version = "0.13.19";
rootSource = fetchzip {
url = "https://github.com/pola-rs/${pname}/archive/refs/tags/py-polars-v${version}.tar.gz";
sha256 = "sha256-JOHjxTTPzS9Dd/ODp4r0ebU9hEonxrbjURJoq0BQCyI=";
};
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.6";
src = rootSource;
preBuild = ''
cd py-polars
'';
cargoDeps = rustPlatform.fetchCargoTarball {
src = rootSource;
preBuild = ''
cd py-polars
'';
name = "${pname}-${version}";
sha256 = "sha256-KEt8lITY4El2afuh2cxnrDkXGN3MZgfKQU3Pe2jECF0=";
};
cargoRoot = "py-polars";
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
pythonImportsCheck = [ "polars" ];
# checkInputs = [
# pytestCheckHook
# fixtures
# graphviz
# matplotlib
# networkx
# numpy
# pydot
# ];
meta = with lib; {
description = "Fast multi-threaded DataFrame library in Rust | Python | Node.js ";
homepage = "https://github.com/pola-rs/polars";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}

@ -6425,6 +6425,8 @@ in {
poezio = callPackage ../applications/networking/instant-messengers/poezio { };
polars = callPackage ../development/python-modules/polars { };
polarizationsolver = callPackage ../development/python-modules/polarizationsolver { };
polib = callPackage ../development/python-modules/polib { };

Loading…
Cancel
Save