Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, stdenv, buildPythonPackage, fetchFromGitHub, httpx, iconv, pytestCheckHook, requests, json-stream-rs-tokenizer, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "json-stream"; version = "2.5.1"; pyproject = true;
src = fetchFromGitHub { owner = "daggaz"; repo = "json-stream"; tag = "v${finalAttrs.version}"; hash = "sha256-fQuTvd2Kizy8icYoewvJJVDc7FXuXRQkwJfOCka3Eo4="; };
build-system = [ setuptools ];
dependencies = [ json-stream-rs-tokenizer ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ iconv ];
optional-dependencies = { httpx = [ httpx ]; requests = [ requests ]; };
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "json_stream" ];
disabledTests = [ "test_writer" ];
meta = { description = "Streaming JSON parser"; homepage = "https://github.com/daggaz/json-stream"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})