Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / rtfde / default.nix
blob3b11adc34a1a1465b2265b753a205fe27ee24f0d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , lark
5 , lxml
6 , oletools
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "rtfde";
14   version = "0.1.1";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "seamustuohy";
21     repo = "RTFDE";
22     rev = "refs/tags/${version}";
23     hash = "sha256-ai9JQ3gphY/IievBNdHiblIpc0IPS9wp7CVvBIRzG/4=";
24   };
26   postPatch = ''
27     # https://github.com/seamustuohy/RTFDE/issues/31
28     substituteInPlace setup.py \
29       --replace-fail "==" ">="
30   '';
32   build-system = [
33     setuptools
34   ];
36   dependencies = [
37     lark
38     oletools
39   ];
41   nativeCheckInputs = [
42     lxml
43     pytestCheckHook
44   ];
46   pythonImportsCheck = [
47     "RTFDE"
48   ];
50   meta = with lib; {
51     description = "Library for extracting encapsulated HTML and plain text content from the RTF bodies";
52     homepage = "https://github.com/seamustuohy/RTFDE";
53     changelog = "https://github.com/seamustuohy/RTFDE/releases/tag/${version}";
54     license = licenses.lgpl3Only;
55     maintainers = with maintainers; [ fab ];
56   };