diff --git a/pkgs/development/python-modules/dbus-fast/default.nix b/pkgs/development/python-modules/dbus-fast/default.nix index ec01d5ab3327..747deb2a4eb7 100644 --- a/pkgs/development/python-modules/dbus-fast/default.nix +++ b/pkgs/development/python-modules/dbus-fast/default.nix @@ -1,12 +1,14 @@ { lib , async-timeout , buildPythonPackage +, cython_3 , fetchFromGitHub , poetry-core , pytest-asyncio , pytestCheckHook , pythonOlder , setuptools +, wheel }: buildPythonPackage rec { @@ -23,9 +25,15 @@ buildPythonPackage rec { hash = "sha256-B+NW7ORKIBtjxeR0W0tX7V1MgBtNoyGFX35TXUl7rVE="; }; + # The project can build both an optimized cython version and an unoptimized + # python version. This ensures we fail if we build the wrong one. + env.REQUIRE_CYTHON = 1; + nativeBuildInputs = [ + cython_3 poetry-core setuptools + wheel ]; propagatedBuildInputs = [