at 22.05-pre 700 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "mutf8"; 10 version = "1.0.5"; 11 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "TkTech"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "0blp6gb7q3f7if326xard8zlfg2rcmb3a7mxvaxgkvxigipjb9af"; 19 }; 20 21 checkInputs = [ 22 pytest 23 ]; 24 25 checkPhase = '' 26 # Using pytestCheckHook results in test failures 27 pytest 28 ''; 29 30 pythonImportsCheck = [ "mutf8" ]; 31 32 meta = with lib; { 33 description = "Fast MUTF-8 encoder & decoder"; 34 homepage = "https://github.com/TkTech/mutf8"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}