From d96d01d7aa2d1193516e1382ce053ecee297027c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 May 2025 20:04:30 +0200 Subject: [PATCH] python313Packages.pystemd: unbreak --- pkgs/development/python-modules/pystemd/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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