From 4fa28aadcdd1015a2e42000ab68ac1575626f04b Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 6 May 2022 04:20:00 +0000 Subject: [PATCH] python39Packages.pdfminer: 20220319 -> 20220506 https://github.com/pdfminer/pdfminer.six/releases/tag/20220506 --- .../python-modules/ocrmypdf/default.nix | 2 +- .../python-modules/pdfminer_six/default.nix | 24 +++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 72565e55419..6700b88479d 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -83,7 +83,7 @@ buildPythonPackage rec { postPatch = '' # https://github.com/ocrmypdf/OCRmyPDF/issues/933 substituteInPlace setup.cfg \ - --replace "pdfminer.six!=20200720,>=20191110,<=20211012" "pdfminer.six!=20200720,>=20191110,<=20220319" + --replace "pdfminer.six!=20200720,>=20191110,<=20220319" "pdfminer.six!=20200720,>=20191110" ''; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/pdfminer_six/default.nix b/pkgs/development/python-modules/pdfminer_six/default.nix index 449ea4f7fd7..b52106af285 100644 --- a/pkgs/development/python-modules/pdfminer_six/default.nix +++ b/pkgs/development/python-modules/pdfminer_six/default.nix @@ -1,8 +1,16 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, cryptography, chardet, pytestCheckHook }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, isPy3k +, cryptography +, charset-normalizer +, pytestCheckHook +, ocrmypdf +}: buildPythonPackage rec { pname = "pdfminer_six"; - version = "20220319"; + version = "20220506"; disabled = !isPy3k; @@ -10,10 +18,10 @@ buildPythonPackage rec { owner = "pdfminer"; repo = "pdfminer.six"; rev = version; - sha256 = "sha256-sjO7jmHSe4EDmJ1rfiXx+lsHxc+DfKeMet37Nbg03WQ="; + sha256 = "sha256-Lq+ou7+Lmr1H69L8X/vuky+/tXDD3bBBaCysymeRuXA="; }; - propagatedBuildInputs = [ chardet cryptography ]; + propagatedBuildInputs = [ charset-normalizer cryptography ]; postInstall = '' for file in $out/bin/*.py; do @@ -27,8 +35,16 @@ buildPythonPackage rec { substituteInPlace pdfminer/__init__.py --replace "__VERSION__" ${version} ''; + pythonImportsCheck = [ "pdfminer" ]; + checkInputs = [ pytestCheckHook ]; + passthru = { + tests = { + inherit ocrmypdf; + }; + }; + meta = with lib; { description = "PDF parser and analyzer"; homepage = "https://github.com/pdfminer/pdfminer.six";