diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix index ec9c843dc885e..70c482b223f2e 100644 --- a/pkgs/development/python-modules/sip/default.nix +++ b/pkgs/development/python-modules/sip/default.nix @@ -9,6 +9,7 @@ , ply , toml , tomli +, poppler-qt5 }: buildPythonPackage rec { @@ -22,6 +23,11 @@ buildPythonPackage rec { hash = "sha256-COZvdCWS64GKyP2kFz4u1kyfLUC3C+4R2xxJkSfZhFA="; }; + postPatch = '' + substituteInPlace sipbuild/generator/outputs/code.py \ + --replace SocstringSignature DocstringSignature + ''; + nativeBuildInputs = [ setuptools wheel @@ -36,6 +42,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "sipbuild" ]; + passthru.tests = { + inherit poppler-qt5; + }; + meta = with lib; { description = "Creates C++ bindings for Python modules"; homepage = "https://riverbankcomputing.com/";