summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/translitcodec/default.nix
blob: f07027619844ba69c5bbad7550eb3106169fbb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

let
  pname = "translitcodec";
  version = "0.7.0";
in
buildPythonPackage {
  inherit pname version;

  format = "setuptools";

  src = fetchFromGitHub {
    owner = "claudep";
    repo = "translitcodec";
    rev = "version-${version}";
    hash = "sha256-/EKquTchx9i3fZqJ6AMzHYP9yCORvwbuUQ95WJQOQbI=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ pname ];

  meta = {
    description = "Unicode to 8-bit charset transliteration codec";
    homepage = "https://github.com/claudep/translitcodec";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ rycee ];
  };
}