summary refs log tree commit diff
path: root/pkgs/development/python-modules/marisa-trie
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-03-11 14:37:01 +0100
committerRobert Schütz <dev@schuetz-co.de>2021-03-11 14:37:27 +0100
commitc67fbae46a6d530b35bdde4cc6ee3e87ea341796 (patch)
tree1706601b24e786d1a1ff6baa329f205a0d12232d /pkgs/development/python-modules/marisa-trie
parentee9b92ddf8734c48d554a920c038c1b569a72b74 (diff)
downloadnixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar.gz
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar.bz2
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar.lz
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar.xz
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.tar.zst
nixpkgs-c67fbae46a6d530b35bdde4cc6ee3e87ea341796.zip
python39Packages.marisa-trie: fix
We need to run cython ourselves.
Diffstat (limited to 'pkgs/development/python-modules/marisa-trie')
-rw-r--r--pkgs/development/python-modules/marisa-trie/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/marisa-trie/default.nix b/pkgs/development/python-modules/marisa-trie/default.nix
index 031f7b04021..e646ee71ec4 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 ];