diff options
-rw-r--r-- | pkgs/development/python-modules/tinycss/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tinycss/default.nix b/pkgs/development/python-modules/tinycss/default.nix index ab6a4183df50..223d778095af 100644 --- a/pkgs/development/python-modules/tinycss/default.nix +++ b/pkgs/development/python-modules/tinycss/default.nix @@ -3,6 +3,7 @@ , fetchPypi , pytest , python +, cython , cssutils , isPyPy }: @@ -18,6 +19,17 @@ buildPythonPackage rec { checkInputs = [ pytest ]; propagatedBuildInputs = [ cssutils ]; + nativeBuildInputs = [ + cython + ]; + + preBuild = '' + # Force cython to re-generate this file. If it is present, cython will + # think it is "up to date" even though it was generated with an older, + # incompatible version of cython. See + # https://github.com/Kozea/tinycss/issues/17. + rm tinycss/speedups.c + ''; checkPhase = '' py.test $out/${python.sitePackages} |