1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "unidecode";
10 version = "1.3.2";
11
12 disabled = pythonOlder "3.5";
13
14 src = fetchFromGitHub {
15 owner = "avian2";
16 repo = pname;
17 rev = "${pname}-${version}";
18 sha256 = "07789mrq0gjxrg1b9a3ypzzfww224sbj25wl0h9nik22sjwi8qhh";
19 };
20
21 checkInputs = [
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [
26 "unidecode"
27 ];
28
29 meta = with lib; {
30 homepage = "https://pypi.python.org/pypi/Unidecode/";
31 description = "ASCII transliterations of Unicode text";
32 license = licenses.gpl2Plus;
33 maintainers = with maintainers; [ domenkozar ];
34 };
35}