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