Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 lib, 4 fetchFromGitHub, 5 unittestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "rtfunicode"; 10 version = "1.4"; 11 12 src = fetchFromGitHub { 13 owner = "mjpieters"; 14 repo = "rtfunicode"; 15 rev = "refs/tags/${version}"; 16 hash = "sha256-5lmiazxiEENpdqzVgoKQoG2OW/w5nGmC8odulo2XaLo="; 17 }; 18 19 nativeBuildInputs = [ unittestCheckHook ]; 20 21 pythonImportsCheck = [ "rtfunicode" ]; 22 23 meta = with lib; { 24 description = "Encoder for unicode to RTF 1.5 command sequences"; 25 maintainers = [ maintainers.lucasew ]; 26 license = licenses.bsd2; 27 homepage = "https://github.com/mjpieters/rtfunicode"; 28 changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${version}"; 29 }; 30}