2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "striprtf";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.0.26";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-/bK7p6xEAHLRxB6rUNjXSuiPYKi2V1xuLHgF3EYgk6o=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "striprtf" ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/joshy/striprtf/blob/v${version}/CHANGELOG.md";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/joshy/striprtf";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple library to convert rtf to text";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "striprtf";
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ aanderse ];
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
};
|
|
|
|
}
|