Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 86 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, buildPythonPackage, fetchFromGitHub, rustPlatform,
# nativeBuildInputs cargo, rustc,
# optional-dependencies pandas, polars, pyarrow,
# tests pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "fastexcel"; version = "0.16.0"; pyproject = true;
src = fetchFromGitHub { owner = "ToucanToco"; repo = "fastexcel"; tag = "v${version}"; hash = "sha256-6pEE3l3qJ3Nir4oDFXdsGiX/2d1w3bqH0nrIOjBt9PM="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-ULRK7GjMEs0mN/H491XANDT7eipOdPfJyGFtPBM3SC8="; };
nativeBuildInputs = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
maturinBuildFlags = [ "--features __maturin" ];
optional-dependencies = { pyarrow = [ pyarrow ]; pandas = [ pandas pyarrow ]; polars = [ polars ]; };
pythonImportsCheck = [ "fastexcel" "fastexcel._fastexcel" ];
preCheck = '' rm -rf python/fastexcel '';
nativeCheckInputs = [ pandas polars pyarrow 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 ]; };}