Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / mutf8 / default.nix
blobdd6f554a66afc57c9a48b2e57cc91307ae2ccc22
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "mutf8";
10   version = "1.0.6";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner = "TkTech";
17     repo = pname;
18     rev = "v${version}";
19     hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo=";
20   };
22   nativeCheckInputs = [
23     pytest
24   ];
26   checkPhase = ''
27     # Using pytestCheckHook results in test failures
28     pytest
29   '';
31   pythonImportsCheck = [
32     "mutf8"
33   ];
35   meta = with lib; {
36     description = "Fast MUTF-8 encoder & decoder";
37     homepage = "https://github.com/TkTech/mutf8";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };