depot/third_party/nixpkgs/pkgs/development/python-modules/sentencepiece/default.nix

20 lines
404 B
Nix
Raw Normal View History

{ buildPythonPackage
, sentencepiece
, pkg-config
}:
buildPythonPackage rec {
pname = "sentencepiece";
format = "setuptools";
inherit (sentencepiece) version src;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ sentencepiece.dev ];
sourceRoot = "${src.name}/python";
# sentencepiece installs 'bin' output.
meta = builtins.removeAttrs sentencepiece.meta [ "outputsToInstall" ];
}