about summary refs log tree commit diff
path: root/pkgs/development/python-modules/rtfde/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/rtfde/default.nix')
-rw-r--r--pkgs/development/python-modules/rtfde/default.nix48
1 files changed, 23 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/rtfde/default.nix b/pkgs/development/python-modules/rtfde/default.nix
index 3b11adc34a1a..6c8be8f8f5b7 100644
--- a/pkgs/development/python-modules/rtfde/default.nix
+++ b/pkgs/development/python-modules/rtfde/default.nix
@@ -1,17 +1,18 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, lark
-, lxml
-, oletools
-, pytestCheckHook
-, pythonOlder
-, setuptools
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  lark,
+  lxml,
+  oletools,
+  pytestCheckHook,
+  pythonOlder,
+  setuptools,
 }:
 
 buildPythonPackage rec {
   pname = "rtfde";
-  version = "0.1.1";
+  version = "0.1.2";
   pyproject = true;
 
   disabled = pythonOlder "3.7";
@@ -20,18 +21,12 @@ buildPythonPackage rec {
     owner = "seamustuohy";
     repo = "RTFDE";
     rev = "refs/tags/${version}";
-    hash = "sha256-ai9JQ3gphY/IievBNdHiblIpc0IPS9wp7CVvBIRzG/4=";
+    hash = "sha256-zmcf9wqlKz55dOIchUC9sgW0PcTCPc52IkbIonOFlmU=";
   };
 
-  postPatch = ''
-    # https://github.com/seamustuohy/RTFDE/issues/31
-    substituteInPlace setup.py \
-      --replace-fail "==" ">="
-  '';
+  build-system = [ setuptools ];
 
-  build-system = [
-    setuptools
-  ];
+  pythonRelaxDeps = [ "lark" ];
 
   dependencies = [
     lark
@@ -43,15 +38,18 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
-  pythonImportsCheck = [
-    "RTFDE"
+  pythonImportsCheck = [ "RTFDE" ];
+
+  disabledTests = [
+    # Malformed encapsulated RTF discovered
+    "test_encoded_bytes_stay_encoded_character"
   ];
 
-  meta = with lib; {
+  meta = {
+    changelog = "https://github.com/seamustuohy/RTFDE/releases/tag/${version}";
     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 ];
+    license = lib.licenses.lgpl3Only;
+    maintainers = with lib.maintainers; [ fab ];
   };
 }