1{ 2 buildPythonPackage, 3 lib, 4 fetchFromGitHub, 5 unittestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "rtfunicode"; 10 version = "2.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "mjpieters"; 15 repo = "rtfunicode"; 16 tag = version; 17 hash = "sha256-mo3kuuK1epcH0Iyi9GYpZOYsUI4etWheyEPdw/S3tJE="; 18 }; 19 20 nativeBuildInputs = [ unittestCheckHook ]; 21 22 pythonImportsCheck = [ "rtfunicode" ]; 23 24 meta = with lib; { 25 description = "Encoder for unicode to RTF 1.5 command sequences"; 26 maintainers = [ maintainers.lucasew ]; 27 license = licenses.bsd2; 28 homepage = "https://github.com/mjpieters/rtfunicode"; 29 changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${version}"; 30 }; 31}