1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "striprtf";
9 version = "0.0.26";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-/bK7p6xEAHLRxB6rUNjXSuiPYKi2V1xuLHgF3EYgk6o=";
17 };
18
19 pythonImportsCheck = [
20 "striprtf"
21 ];
22
23 meta = with lib; {
24 changelog = "https://github.com/joshy/striprtf/blob/v${version}/CHANGELOG.md";
25 homepage = "https://github.com/joshy/striprtf";
26 description = "A simple library to convert rtf to text";
27 maintainers = with maintainers; [ aanderse ];
28 license = with licenses; [ bsd3 ];
29 };
30}