1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pyunormalize";
11 version = "17.0.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "mlodewijck";
16 repo = "pyunormalize";
17 tag = "v${version}";
18 hash = "sha256-JDcMWaA6r8YRZYJseyKUyPAInrqHHYhQXYmw9rr3ls4=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "pyunormalize" ];
26
27 meta = {
28 description = "Unicode normalization forms (NFC, NFKC, NFD, NFKD) independent of the Python core Unicode database";
29 homepage = "https://github.com/mlodewijck/pyunormalize";
30 changelog = "https://github.com/mlodewijck/pyunormalize/releases/tag/${src.tag}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ hellwolf ];
33 };
34}