1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "mutf8"; 10 version = "1.0.6"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "TkTech"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo="; 20 }; 21 22 nativeCheckInputs = [ 23 pytest 24 ]; 25 26 checkPhase = '' 27 # Using pytestCheckHook results in test failures 28 pytest 29 ''; 30 31 pythonImportsCheck = [ 32 "mutf8" 33 ]; 34 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 }; 41}