summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/zhon/default.nix
blob: 00473aed7329a7096725e9dfb1defda190b9e21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "zhon";
  version = "2.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tsroten";
    repo = "zhon";
    tag = "v${version}";
    hash = "sha256-ghZp+5YXmTWf1EJKvdSlqccnxnaLliYR5HxX5DcWXiw=";
  };

  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 ];
  };
}