1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, text-unidecode
5, chardet
6, banal
7, PyICU
8, pytestCheckHook
9}:
10buildPythonPackage rec {
11 pname = "normality";
12 version = "2.2.5";
13
14 src = fetchFromGitHub {
15 owner = "pudo";
16 repo = "normality";
17 rev = version;
18 sha256 = "n8Ycm5DeFItmMJTolazZKGIyN7CTg2ajDCwi/UqzVe8=";
19 };
20
21 propagatedBuildInputs = [
22 text-unidecode
23 chardet
24 banal
25 PyICU
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [
33 "normality"
34 ];
35
36 meta = with lib; {
37 description = "Micro-library to normalize text strings";
38 homepage = "https://github.com/pudo/normality";
39 license = licenses.mit;
40 maintainers = teams.determinatesystems.members;
41 };
42}