mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
19 lines
374 B
Nix
19 lines
374 B
Nix
{ buildPythonPackage
|
|
|
|
, sentencepiece
|
|
, pkg-config
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sentencepiece";
|
|
inherit (sentencepiece) version src;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ sentencepiece.dev ];
|
|
|
|
sourceRoot = "source/python";
|
|
|
|
# sentencepiece installs 'bin' output.
|
|
meta = builtins.removeAttrs sentencepiece.meta [ "outputsToInstall" ];
|
|
}
|