1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 nix-update-script, 8}: 9 10buildPythonPackage rec { 11 pname = "unidecode"; 12 version = "1.4.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "avian2"; 17 repo = "unidecode"; 18 tag = "unidecode-${version}"; 19 hash = "sha256-CPogyDw8B1Xd3Bt6W9OaImVt+hFQsir16mnSYk8hFWQ="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "unidecode" ]; 27 28 passthru.updateScript = nix-update-script { 29 extraArgs = [ 30 "--version-regex" 31 "unidecode-(.*)" 32 ]; 33 }; 34 35 meta = with lib; { 36 description = "ASCII transliterations of Unicode text"; 37 mainProgram = "unidecode"; 38 homepage = "https://github.com/avian2/unidecode"; 39 changelog = "https://github.com/avian2/unidecode/blob/unidecode-${version}/ChangeLog"; 40 license = licenses.gpl2Plus; 41 maintainers = with maintainers; [ ]; 42 }; 43}