504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
30 lines
728 B
Nix
30 lines
728 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder }:
|
|
|
|
let
|
|
pname = "translitcodec";
|
|
version = "0.7.0";
|
|
in buildPythonPackage {
|
|
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 ];
|
|
};
|
|
}
|