git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #140318 from fabaff/fix-ocrmypdf
commitc94bb53f7871690607764c680cc6795b323a0135 authorSandro <sandro.jaeckel@gmail.com> dateSun 3 Oct 2021, 01:16 (5 years ago) parent562b30eac2a0f2
1 file changed+6
pkgs/development/python-modules/ocrmypdf/default.nix+6
pkgs/development/python-modules/ocrmypdf/default.nix+6
@@ -37,6 +37,8 @@ buildPythonPackage rec {
3737 sha256 = "sha256-g80WedX+TGHE9EJ/RSgOc53PM17V3WZslUNaHoqKTo0=";
3838 };
3939
40+ SETUPTOOLS_SCM_PRETEND_VERSION = version;
41+
4042 patches = [
4143 (substituteAll {
4244 src = ./paths.patch;
@@ -73,6 +75,10 @@ buildPythonPackage rec {
7375 pytestCheckHook
7476 ];
7577
78+ pythonImportsCheck = [
79+ "ocrmypdf"
80+ ];
81+
7682 meta = with lib; {
7783 homepage = "https://github.com/jbarlow83/OCRmyPDF";
7884 description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";