mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-25 17:30:31 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
733 B
Nix
32 lines
733 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 = {
|
|
description = "Encoder for unicode to RTF 1.5 command sequences";
|
|
maintainers = [ lib.maintainers.lucasew ];
|
|
license = lib.licenses.bsd2;
|
|
homepage = "https://github.com/mjpieters/rtfunicode";
|
|
changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${version}";
|
|
};
|
|
}
|