2025-03-02 02:56:51 +08:00

35 lines
752 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zhon";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "tsroten";
repo = "zhon";
tag = "v${version}";
hash = "sha256-LFuEXu0IPJ6UFHhJKqQHp829wndNypmmhO0yZ1WEAXg=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "zhon" ];
meta = {
description = "Constants used in Chinese text processing";
homepage = "https://github.com/tsroten/zhon";
changelog = "https://github.com/tsroten/zhon/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
}