Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, pkg-config, rustPlatform, openssl,}:
buildPythonPackage rec { pname = "hf-xet"; version = "1.1.7"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "xet-core"; tag = "v${version}"; hash = "sha256-jOw9ltijM4KB3MyJ5z3XpIpNc2D9DVEP3CyyT6r8xlY="; };
sourceRoot = "${src.name}/hf_xet";
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src sourceRoot ; hash = "sha256-WoMs7GeELuhZitv59aD6X43wiscSFMKKW7mYxaPZ/mQ="; };
nativeBuildInputs = [ pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ];
buildInputs = [ openssl ];
env.OPENSSL_NO_VENDOR = 1;
pythonImportsCheck = [ "hf_xet" ];
# No tests (yet?) doCheck = false;
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/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };}