Diff: https://github.com/ToucanToco/fastexcel/compare/refs/tags/v0.13.0...refs/tags/v0.14.0 Changelog: https://github.com/ToucanToco/fastexcel/releases/tag/v0.14.0
79 lines
1.3 KiB
Nix
79 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
|
|
# nativeBuildInputs
|
|
cargo,
|
|
rustc,
|
|
|
|
# dependencies
|
|
pyarrow,
|
|
|
|
# optional-dependencies
|
|
pandas,
|
|
polars,
|
|
|
|
# tests
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastexcel";
|
|
version = "0.14.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ToucanToco";
|
|
repo = "fastexcel";
|
|
tag = "v${version}";
|
|
hash = "sha256-sBpefpJm8b+6WQeO7zqihFDYPRnMZUQFSapcDkqekI0=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit pname version src;
|
|
hash = "sha256-gwLVxW9ETzvnI0tE8EWr8pUtvsBAQ/tC4tgEso15N3M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
rustc
|
|
];
|
|
|
|
dependencies = [
|
|
pyarrow
|
|
];
|
|
|
|
optional-dependencies = {
|
|
pandas = [
|
|
pandas
|
|
];
|
|
polars = [
|
|
polars
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"fastexcel"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pandas
|
|
polars
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Fast excel file reader for Python, written in Rust";
|
|
homepage = "https://github.com/ToucanToco/fastexcel/";
|
|
changelog = "https://github.com/ToucanToco/fastexcel/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|