19 buildPythonPackage rec {
20 pname = "hf-transfer";
24 src = fetchFromGitHub {
25 owner = "huggingface";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-Uh8q14OeN0fYsywYyNrH8C3wq/qRjQKEAIufi/a5RXA=";
31 cargoDeps = rustPlatform.fetchCargoTarball {
33 name = "${pname}-${version}";
34 hash = "sha256-I4APdz1r2KJ8pTfKAg8g240wYy8gtMlHwmBye4796Tk=";
40 rustPlatform.cargoSetupHook
41 rustPlatform.maturinBuildHook
49 ++ lib.optionals stdenv.hostPlatform.isDarwin [
50 darwin.apple_sdk.frameworks.Security
51 darwin.apple_sdk.frameworks.SystemConfiguration
55 pythonImportsCheck = [ "hf_transfer" ];
58 OPENSSL_NO_VENDOR = true;
62 description = "High speed download python library";
63 homepage = "https://github.com/huggingface/hf_transfer";
64 changelog = "https://github.com/huggingface/hf_transfer/releases/tag/v${version}";
65 license = lib.licenses.asl20;
66 maintainers = with lib.maintainers; [ GaetanLepage ];