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