1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "unidecode";
12 version = "1.3.8";
13 pyproject = true;
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchFromGitHub {
18 owner = "avian2";
19 repo = "unidecode";
20 rev = "refs/tags/${pname}-${version}";
21 hash = "sha256-OoJSY+dNNISyVwKuRboMH7Je8nYFKxus2c4v3VsmyRE=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "unidecode" ];
29
30 meta = with lib; {
31 description = "ASCII transliterations of Unicode text";
32 mainProgram = "unidecode";
33 homepage = "https://github.com/avian2/unidecode";
34 changelog = "https://github.com/avian2/unidecode/blob/unidecode-${version}/ChangeLog";
35 license = licenses.gpl2Plus;
36 maintainers = with maintainers; [ domenkozar ];
37 };
38}