python3Packages.tokenizers: fix cross build

This commit is contained in:
vytskalt 2024-04-28 18:50:39 +03:00
parent 75b5cf2710
commit c7a2a23394
No known key found for this signature in database
GPG Key ID: 3A112F524D06EF38

View File

@ -4,6 +4,7 @@
, buildPythonPackage
, cargo
, datasets
, huggingface-hub
, fetchFromGitHub
, fetchurl
, libiconv
@ -11,6 +12,7 @@
, openssl
, pkg-config
, pytestCheckHook
, python
, pythonOlder
, requests
, rustPlatform
@ -80,6 +82,7 @@ buildPythonPackage rec {
};
sourceRoot = "${src.name}/bindings/python";
maturinBuildFlags = [ "--interpreter ${python.executable}" ];
nativeBuildInputs = [
pkg-config
@ -105,6 +108,7 @@ buildPythonPackage rec {
dependencies = [
numpy
huggingface-hub
];
nativeCheckInputs = [