If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
32 lines
735 B
Nix
32 lines
735 B
Nix
{
|
|
buildPythonPackage,
|
|
lib,
|
|
fetchFromGitHub,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rtfunicode";
|
|
version = "1.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjpieters";
|
|
repo = "rtfunicode";
|
|
tag = version;
|
|
hash = "sha256-5lmiazxiEENpdqzVgoKQoG2OW/w5nGmC8odulo2XaLo=";
|
|
};
|
|
|
|
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}";
|
|
};
|
|
}
|