2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
, sentencepiece
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentencepiece";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (sentencepiece) version src;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ sentencepiece.dev ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# sentencepiece installs 'bin' output.
|
|
|
|
meta = builtins.removeAttrs sentencepiece.meta [ "outputsToInstall" ];
|
|
|
|
}
|