1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "emoji"; 10 version = "2.8.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "carpedm20"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-fnVY4KwiqvSVYijlDckLq6qDrBJj/rJGMwaQ1mMygek="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 disabledTests = [ 27 "test_emojize_name_only" 28 ]; 29 30 pythonImportsCheck = [ 31 "emoji" 32 ]; 33 34 meta = with lib; { 35 description = "Emoji for Python"; 36 homepage = "https://github.com/carpedm20/emoji/"; 37 changelog = "https://github.com/carpedm20/emoji/blob/v${version}/CHANGES.md"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ joachifm ]; 40 }; 41}