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