diff --git a/pkgs/development/python-modules/pyroaring/default.nix b/pkgs/development/python-modules/pyroaring/default.nix index cf7186e34ab9..a0ee27e8a5d4 100644 --- a/pkgs/development/python-modules/pyroaring/default.nix +++ b/pkgs/development/python-modules/pyroaring/default.nix @@ -20,6 +20,11 @@ buildPythonPackage rec { hash = "sha256-g+xpQ2DuVn8b0DiIOY69QOH6iwOYHG4bltX1zbDemdI="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace-fail "cython>=3.0.2,<3.1.0" "cython" + ''; + build-system = [ cython setuptools