From eb70391a8c17909dd3d366250138baaec16cca48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 25 May 2022 06:12:33 +0000 Subject: [PATCH] python3Packages.ocrmypdf: 13.4.4 -> 13.4.5 https://github.com/ocrmypdf/OCRmyPDF/blob/v13.4.5/docs/release_notes.rst --- .../python-modules/ocrmypdf/default.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index e411519c95a4..168777594aef 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -27,10 +27,10 @@ buildPythonPackage rec { pname = "ocrmypdf"; - version = "13.4.4"; + version = "13.4.5"; src = fetchFromGitHub { - owner = "jbarlow83"; + owner = "ocrmypdf"; repo = "OCRmyPDF"; rev = "v${version}"; # The content of .git_archival.txt is substituted upon tarball creation, @@ -39,7 +39,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/.git_archival.txt" ''; - hash = "sha256-uFKnohUxh17h6u0vwVB7EaTEh5NRowP8a6za63Ehodk="; + hash = "sha256-5IpJ55Vu9LjGgWJITkAH5fOr+MfovswWhwqbEs/RlzA="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -80,21 +80,15 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - # https://github.com/ocrmypdf/OCRmyPDF/issues/933 - substituteInPlace setup.cfg \ - --replace "pdfminer.six!=20200720,>=20191110,<=20220319" "pdfminer.six!=20200720,>=20191110" - ''; - pythonImportsCheck = [ "ocrmypdf" ]; meta = with lib; { - homepage = "https://github.com/jbarlow83/OCRmyPDF"; + homepage = "https://github.com/ocrmypdf/OCRmyPDF"; description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched"; license = with licenses; [ mpl20 mit ]; maintainers = with maintainers; [ kiwi dotlambda ]; - changelog = "https://github.com/jbarlow83/OCRmyPDF/blob/v${version}/docs/release_notes.rst"; + changelog = "https://github.com/ocrmypdf/OCRmyPDF/blob/${src.rev}/docs/release_notes.rst"; }; }