diff --git a/pkgs/development/python-modules/pystemd/default.nix b/pkgs/development/python-modules/pystemd/default.nix index 86be5f000ed5..792e2ffd49d8 100644 --- a/pkgs/development/python-modules/pystemd/default.nix +++ b/pkgs/development/python-modules/pystemd/default.nix @@ -8,6 +8,7 @@ pytest, mock, pkg-config, + cython, }: buildPythonPackage rec { @@ -19,9 +20,17 @@ buildPythonPackage rec { hash = "sha256-Tc+ksTpVaFxJ09F8EGMeyhjDN3D2Yxb47yM3uJUcwUQ="; }; + postPatch = '' + # remove cythonized sources, build them anew to support more python version + rm pystemd/*.c + ''; + buildInputs = [ systemd ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + cython + ]; propagatedBuildInputs = [ lxml