about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-05-15 23:43:10 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-05-16 11:37:54 -0700
commit93b45825ddaff290ab9c885c6d2393725a91fbe7 (patch)
tree4b279f2103a2d7ca04f4ab86a0dcd24632538091
parentdf9525d89ab5a9455ad79a94478c22ed57e55f4d (diff)
python3.pkgs.ijson: enable yail backend
makes parsing a lot faster.
-rw-r--r--pkgs/development/python-modules/ijson/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ijson/default.nix b/pkgs/development/python-modules/ijson/default.nix
index 3f65b9291ae65..3211aed644e08 100644
--- a/pkgs/development/python-modules/ijson/default.nix
+++ b/pkgs/development/python-modules/ijson/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildPythonPackage, fetchPypi }:
+{ lib, buildPythonPackage, fetchPypi, yajl, cffi, pytestCheckHook }:
 
 buildPythonPackage rec {
   pname = "ijson";
@@ -9,7 +9,11 @@ buildPythonPackage rec {
     sha256 = "1d1003ae3c6115ec9b587d29dd136860a81a23c7626b682e2b5b12c9fd30e4ea";
   };
 
-  doCheck = false; # something about yajl
+  buildInputs = [ yajl ];
+  propagatedBuildInputs = [ cffi ];
+  checkInputs = [ pytestCheckHook ];
+
+  doCheck = true;
 
   meta = with lib; {
     description = "Iterative JSON parser with a standard Python iterator interface";