32 lines
735 B
Nix
32 lines
735 B
Nix
{
|
|
buildPythonPackage,
|
|
lib,
|
|
fetchFromGitHub,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rtfunicode";
|
|
version = "2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjpieters";
|
|
repo = "rtfunicode";
|
|
tag = version;
|
|
hash = "sha256-mo3kuuK1epcH0Iyi9GYpZOYsUI4etWheyEPdw/S3tJE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "rtfunicode" ];
|
|
|
|
meta = with lib; {
|
|
description = "Encoder for unicode to RTF 1.5 command sequences";
|
|
maintainers = [ maintainers.lucasew ];
|
|
license = licenses.bsd2;
|
|
homepage = "https://github.com/mjpieters/rtfunicode";
|
|
changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${version}";
|
|
};
|
|
}
|