about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pdfplumber/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pdfplumber/default.nix')
-rw-r--r--pkgs/development/python-modules/pdfplumber/default.nix43
1 files changed, 22 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/pdfplumber/default.nix b/pkgs/development/python-modules/pdfplumber/default.nix
index 80e937d4c48c..47e0dd303d46 100644
--- a/pkgs/development/python-modules/pdfplumber/default.nix
+++ b/pkgs/development/python-modules/pdfplumber/default.nix
@@ -1,22 +1,24 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, jupyterlab
-, nbexec
-, pandas
-, pandas-stubs
-, pdfminer-six
-, pillow
-, pytest-parallel
-, pytestCheckHook
-, pythonOlder
-, types-pillow
-, wand
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  ghostscript,
+  jupyterlab,
+  nbexec,
+  pandas,
+  pandas-stubs,
+  pdfminer-six,
+  pillow,
+  pytest-parallel,
+  pytestCheckHook,
+  pythonOlder,
+  types-pillow,
+  wand,
 }:
 
 buildPythonPackage rec {
   pname = "pdfplumber";
-  version = "0.11.0";
+  version = "0.11.4";
   format = "setuptools";
 
   disabled = pythonOlder "3.7";
@@ -25,7 +27,7 @@ buildPythonPackage rec {
     owner = "jsvine";
     repo = "pdfplumber";
     rev = "refs/tags/v${version}";
-    hash = "sha256-sjiCxE2WcvBASANCeookNn1n9M+mY0/8QGOCen+pzqM=";
+    hash = "sha256-62S5DMQwSgehl0BcjeRaTocko8xg72pQQ5YLoL3+QbU=";
   };
 
   postPatch = ''
@@ -44,6 +46,7 @@ buildPythonPackage rec {
   '';
 
   nativeCheckInputs = [
+    ghostscript
     jupyterlab
     nbexec
     pandas
@@ -53,9 +56,7 @@ buildPythonPackage rec {
     types-pillow
   ];
 
-  pythonImportsCheck = [
-    "pdfplumber"
-  ];
+  pythonImportsCheck = [ "pdfplumber" ];
 
   disabledTests = [
     # flaky
@@ -65,8 +66,8 @@ buildPythonPackage rec {
   disabledTestPaths = [
     # Tests requires pypdfium2
     "tests/test_display.py"
-    # Tests require Ghostscript
-    "tests/test_repair.py"
+    # Tests requires pypdfium2
+    "tests/test_issues.py"
   ];
 
   meta = with lib; {