1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, iconv 6, pytestCheckHook 7, pythonOlder 8, requests 9, json-stream-rs-tokenizer 10, setuptools 11}: 12 13buildPythonPackage rec { 14 pname = "json-stream"; 15 version = "2.3.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-uLRQ6o6OPCOenn440S/tk053o1PBSyl/juNFpc6yW5E="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 buildInputs = lib.optionals stdenv.isDarwin [ 30 iconv 31 ]; 32 33 propagatedBuildInputs = [ 34 requests 35 json-stream-rs-tokenizer 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "json_stream" 44 ]; 45 46 disabledTests = [ 47 "test_writer" 48 ]; 49 50 meta = with lib; { 51 description = "Streaming JSON parser"; 52 homepage = "https://github.com/daggaz/json-stream"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}