1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 setuptools, 5 pythonOlder, 6 unittestCheckHook, 7 pandoc, 8 lib, 9}: 10let 11 version = "0.7.0"; 12in 13buildPythonPackage { 14 pname = "emojis"; 15 inherit version; 16 pyproject = true; 17 18 build-system = [ setuptools ]; 19 20 disabled = pythonOlder "3.4"; 21 22 src = fetchFromGitHub { 23 owner = "alexandrevicenzi"; 24 repo = "emojis"; 25 tag = "v${version}"; 26 hash = "sha256-rr/BM39U1j8EL8b/YojclI4h0NnOCdoMlecR/1f9ISg="; 27 }; 28 29 nativeBuildInputs = [ 30 pandoc 31 ]; 32 33 preBuild = '' 34 make pandoc 35 ''; 36 37 pythonImportsCheck = [ "emojis" ]; 38 39 nativeCheckInputs = [ unittestCheckHook ]; 40 41 meta = { 42 description = "Convert emoji names to emoji characters"; 43 homepage = "https://github.com/alexandrevicenzi/emojis"; 44 changelog = "https://github.com/alexandrevicenzi/emojis/releases/tag/v${version}"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ amadaluzia ]; 47 }; 48}