From c67fbae46a6d530b35bdde4cc6ee3e87ea341796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 11 Mar 2021 14:37:01 +0100 Subject: [PATCH] python39Packages.marisa-trie: fix We need to run cython ourselves. --- pkgs/development/python-modules/marisa-trie/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/marisa-trie/default.nix b/pkgs/development/python-modules/marisa-trie/default.nix index 031f7b04021b..e646ee71ec43 100644 --- a/pkgs/development/python-modules/marisa-trie/default.nix +++ b/pkgs/development/python-modules/marisa-trie/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, cython , pytestrunner , pytest , hypothesis @@ -20,7 +21,11 @@ buildPythonPackage rec { --replace "hypothesis==" "hypothesis>=" ''; - nativeBuildInputs = [ pytestrunner ]; + nativeBuildInputs = [ cython pytestrunner ]; + + preBuild = '' + ./update_cpp.sh + ''; checkInputs = [ pytest hypothesis ];