diff --git a/pkgs/development/python-modules/json-stream/default.nix b/pkgs/development/python-modules/json-stream/default.nix index fd5f61399f18..736f3278d1e5 100644 --- a/pkgs/development/python-modules/json-stream/default.nix +++ b/pkgs/development/python-modules/json-stream/default.nix @@ -3,7 +3,7 @@ stdenv, buildPythonPackage, fetchPypi, - iconv, + httpx, pytestCheckHook, pythonOlder, requests, @@ -13,24 +13,25 @@ buildPythonPackage rec { pname = "json-stream"; - version = "2.3.2"; - format = "pyproject"; + version = "2.3.3"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { - inherit pname version; - hash = "sha256-uLRQ6o6OPCOenn440S/tk053o1PBSyl/juNFpc6yW5E="; + pname = "json_stream"; + inherit version; + hash = "sha256-iURExowzEXSSZ2PiJPs0t+0/kHSdHBZa/Q9ZMCB1NMQ="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ iconv ]; + dependencies = [ json-stream-rs-tokenizer ]; - propagatedBuildInputs = [ - requests - json-stream-rs-tokenizer - ]; + optional-dependencies = { + httpx = [ httpx ]; + requests = [ requests ]; + }; nativeCheckInputs = [ pytestCheckHook ]; @@ -41,7 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "Streaming JSON parser"; homepage = "https://github.com/daggaz/json-stream"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }