1{ lib 2, buildPythonPackage 3, fetchPypi 4, yajl 5, cffi 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "ijson"; 11 version = "3.2.3"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-EClOm/ictxPaBbxHkL3/YWYQQy21YZZIJwdImOF0+Rc="; 16 }; 17 18 buildInputs = [ 19 yajl 20 ]; 21 22 propagatedBuildInputs = [ 23 cffi 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 doCheck = true; 31 32 pythonImportsCheck = [ 33 "ijson" 34 ]; 35 36 meta = with lib; { 37 description = "Iterative JSON parser with a standard Python iterator interface"; 38 homepage = "https://github.com/ICRAR/ijson"; 39 changelog = "https://github.com/ICRAR/ijson/blob/v${version}/CHANGELOG.md"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ rvl ]; 42 }; 43}