blob: 966e399b24780d958c7bd29c1f2bd882cbc1bb05 (
plain) (
blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
setuptools-scm,
text-unidecode,
charset-normalizer,
chardet,
banal,
pyicu,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "normality";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pudo";
repo = "normality";
rev = version;
hash = "sha256-cGQpNhUqlT2B9wKDoDeDmyCNQLwWR7rTCLxnPHhMR0w=";
};
buildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
charset-normalizer
text-unidecode
chardet
banal
pyicu
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "normality" ];
meta = with lib; {
description = "Micro-library to normalize text strings";
homepage = "https://github.com/pudo/normality";
license = licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}
|