2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "translitcodec";
|
|
|
|
version = "0.7.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "claudep";
|
|
|
|
repo = pname;
|
|
|
|
rev = "version-${version}";
|
|
|
|
hash = "sha256-/EKquTchx9i3fZqJ6AMzHYP9yCORvwbuUQ95WJQOQbI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ pname ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unicode to 8-bit charset transliteration codec";
|
|
|
|
homepage = "https://github.com/claudep/translitcodec";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ rycee ];
|
|
|
|
};
|
|
|
|
}
|