Merge pull request #171883 from marsam/update-pdfminer

python39Packages.pdfminer: 20220319 -> 20220506
main
Mario Rodas 2 years ago committed by GitHub
commit c5f33a9b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkgs/development/python-modules/ocrmypdf/default.nix
  2. 24
      pkgs/development/python-modules/pdfminer_six/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 = [

@ -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";

Loading…
Cancel
Save