Skip to content

Commit

Permalink
python3Packages.tokenizers: fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
vytskalt committed Apr 28, 2024
1 parent 75b5cf2 commit e47d89f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/tokenizers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
, buildPythonPackage
, cargo
, datasets
, huggingface-hub
, fetchFromGitHub
, fetchurl
, libiconv
, numpy
, openssl
, pkg-config
, pytestCheckHook
, python
, pythonOlder
, requests
, rustPlatform
Expand Down Expand Up @@ -80,6 +82,7 @@ buildPythonPackage rec {
};

sourceRoot = "${src.name}/bindings/python";
maturinBuildFlags = [ "--interpreter ${python.executable}" ];

nativeBuildInputs = [
pkg-config
Expand All @@ -90,6 +93,10 @@ buildPythonPackage rec {
rustc
];

propagatedBuildInputs = [
huggingface-hub
];

buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
Expand Down

0 comments on commit e47d89f

Please sign in to comment.