Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 50 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, stdenv, buildPythonPackage, fetchFromGitHub, httpx, iconv, pytestCheckHook, pythonOlder, requests, json-stream-rs-tokenizer, setuptools,}:
buildPythonPackage rec { pname = "json-stream"; version = "2.3.3"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "daggaz"; repo = "json-stream"; tag = "v${version}"; hash = "sha256-/GDEC/Poy84TGuXM34OW4+K/qMJELFfO+lNQ5M5VsdI="; };
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 = with lib; { description = "Streaming JSON parser"; homepage = "https://github.com/daggaz/json-stream"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}