depot/third_party/nixpkgs/pkgs/development/python-modules/youtokentome/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

48 lines
906 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, click
, cython
, pytestCheckHook
, pythonOlder
, tabulate
}:
buildPythonPackage rec {
pname = "youtokentome";
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "VKCOM";
repo = "YouTokenToMe";
rev = "refs/tags/v${version}";
hash = "sha256-IFZS4jSi4yMzI7VbOPHI3KFZu5tjPjfQDPY7e1qbKAM=";
};
nativeBuildInputs = [
cython
setuptools
];
propagatedBuildInputs = [
click
tabulate
];
pythonImportsCheck = [
"youtokentome"
];
meta = with lib; {
description = "Unsupervised text tokenizer";
mainProgram = "yttm";
homepage = "https://github.com/VKCOM/YouTokenToMe";
changelog = "https://github.com/VKCOM/YouTokenToMe/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}