2019-12-07 04:26:02 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, stdenv
|
|
|
|
, sentencepiece
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-12-07 04:26:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentencepiece";
|
2020-02-25 16:06:24 +01:00
|
|
|
inherit (sentencepiece) version src;
|
2019-12-07 04:26:02 +01:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-02-25 16:06:24 +01:00
|
|
|
buildInputs = [ sentencepiece.dev ];
|
2019-12-07 04:26:02 +01:00
|
|
|
|
|
|
|
sourceRoot = "source/python";
|
2020-02-25 16:06:24 +01:00
|
|
|
|
|
|
|
# sentencepiece installs 'bin' output.
|
|
|
|
meta = builtins.removeAttrs sentencepiece.meta [ "outputsToInstall" ];
|
2019-12-07 04:26:02 +01:00
|
|
|
}
|