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