1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 hatchling,
6 charset-normalizer,
7 chardet,
8 banal,
9 pyicu,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "normality";
15 version = "3.0.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "pudo";
20 repo = "normality";
21 tag = version;
22 hash = "sha256-X8ssSURC3NiQ1uf2qv1PgCBIYQnmoYVKPn5YPdJG71o=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [
28 charset-normalizer
29 chardet
30 banal
31 pyicu
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "normality" ];
37
38 meta = {
39 description = "Micro-library to normalize text strings";
40 homepage = "https://github.com/pudo/normality";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ sigmanificient ];
43 };
44}