git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.ocrmypdf: set version manually
commitac2a0f27573ebf76f3aaa5b16c027f3cf98aa839 authorFabian Affolter <mail@fabian-affolter.ch> dateSat 2 Oct 2021, 22:45 (5 years ago) parent18e1780
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";