ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
56 lines
929 B
Nix
56 lines
929 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, iconv
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, json-stream-rs-tokenizer
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "json-stream";
|
|
version = "2.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7SZw7hRN+VtvHHXG+O/eIrc02vc1nPnn2oJGIg7CtFM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
iconv
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
json-stream-rs-tokenizer
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"json_stream"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_writer"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Streaming JSON parser";
|
|
homepage = "https://github.com/daggaz/json-stream";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|