Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub, pkg-config, rustPlatform, aws-lc,
# tests cacert, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "hf-xet"; version = "1.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "xet-core"; tag = "v${finalAttrs.version}"; hash = "sha256-m78BR0ctfJFwpmWy/gM8uDwckK4FL/+xuAQJljlYoY8="; };
sourceRoot = "${finalAttrs.src.name}/hf_xet";
cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src sourceRoot ; hash = "sha256-YE5i6keGkMLLukCUoK09/pAD9deChXimTGqXDUCN7vc="; };
nativeBuildInputs = [ pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ];
buildInputs = [ aws-lc ];
pythonImportsCheck = [ "hf_xet" ];
nativeCheckInputs = [ cacert pytestCheckHook writableTmpDirAsHomeHook ];
meta = { description = "Xet client tech, used in huggingface_hub"; homepage = "https://github.com/huggingface/xet-core/tree/main/hf_xet"; changelog = "https://github.com/huggingface/xet-core/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})