summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mutf8/default.nix
blob: 5b0df9f9b3c7c05a9b13879f805d367bc4ea4be3 (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
35
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytest,
}:

buildPythonPackage rec {
  pname = "mutf8";
  version = "1.0.6";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "TkTech";
    repo = "mutf8";
    rev = "v${version}";
    hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo=";
  };

  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    # Using pytestCheckHook results in test failures
    pytest
  '';

  pythonImportsCheck = [ "mutf8" ];

  meta = {
    description = "Fast MUTF-8 encoder & decoder";
    homepage = "https://github.com/TkTech/mutf8";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}