Merge pull request #307496 from vytskalt/tokenizers-fix

python3Packages.tokenizers: fix cross build
This commit is contained in:
OTABI Tomoya 2024-04-29 20:53:14 +09:00 committed by GitHub
commit d20c85b180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = [