python3Packages.tokenizers: fix cross build
This commit is contained in:
parent
75b5cf2710
commit
c7a2a23394
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user