mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
Diff: https://github.com/huggingface/xet-core/compare/1.4.3...v1.5.2 Changelog: https://github.com/huggingface/xet-core/releases/tag/v1.5.2
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
rustPlatform,
|
|
openssl,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "hf-xet";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "huggingface";
|
|
repo = "xet-core";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-SP6Z8iIkrt3FVXxXYdvjeiIAfcrVlfCPQq6C36DfhEM=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/hf_xet";
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs)
|
|
pname
|
|
version
|
|
src
|
|
sourceRoot
|
|
;
|
|
hash = "sha256-pvtq9mKlmwaqAq281Lin/UgVGcRe2SEvyzCa+xWSwVQ=";
|
|
};
|
|
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
})
|