1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9let 10 pname = "translitcodec"; 11 version = "0.7.0"; 12in 13buildPythonPackage { 14 inherit pname version; 15 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "claudep"; 22 repo = "translitcodec"; 23 rev = "version-${version}"; 24 hash = "sha256-/EKquTchx9i3fZqJ6AMzHYP9yCORvwbuUQ95WJQOQbI="; 25 }; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ pname ]; 30 31 meta = with lib; { 32 description = "Unicode to 8-bit charset transliteration codec"; 33 homepage = "https://github.com/claudep/translitcodec"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ rycee ]; 36 }; 37}