blob: c986d7b0c5e3e427cccc94e662aaafe71b226db8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, lark
, lxml
, oletools
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "rtfde";
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "seamustuohy";
repo = "RTFDE";
rev = "refs/tags/${version}";
hash = "sha256-ai9JQ3gphY/IievBNdHiblIpc0IPS9wp7CVvBIRzG/4=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
lark
oletools
];
nativeCheckInputs = [
lxml
pytestCheckHook
];
pythonImportsCheck = [
"RTFDE"
];
meta = with lib; {
description = "Library for extracting encapsulated HTML and plain text content from the RTF bodies";
homepage = "https://github.com/seamustuohy/RTFDE";
changelog = "https://github.com/seamustuohy/RTFDE/releases/tag/${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ fab ];
};
}
|