Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 63 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, buildPythonPackage, fetchFromGitHub,
# build-system cargo, pkg-config, rustPlatform, rustc,
# buildInputs openssl, stdenv, libiconv,}:
buildPythonPackage rec { pname = "hf-transfer"; version = "0.1.9"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "hf_transfer"; tag = "v${version}"; hash = "sha256-mcU3YuJVfuwBvtLfqceV3glcJcpjSX7M3VjvbvLCxZg="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-O4aKqVSShFpt8mdZkY3WV55j9CIczRSRkIMC7dJoGv0="; };
build-system = [ cargo pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
pythonImportsCheck = [ "hf_transfer" ];
env = { OPENSSL_NO_VENDOR = true; };
meta = { description = "High speed download python library"; homepage = "https://github.com/huggingface/hf_transfer"; changelog = "https://github.com/huggingface/hf_transfer/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };}