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