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