depot/third_party/nixpkgs/pkgs/development/python-modules/json-stream/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

47 lines
924 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
iconv,
pytestCheckHook,
pythonOlder,
requests,
json-stream-rs-tokenizer,
setuptools,
}:
buildPythonPackage rec {
pname = "json-stream";
version = "2.3.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-uLRQ6o6OPCOenn440S/tk053o1PBSyl/juNFpc6yW5E=";
};
nativeBuildInputs = [ setuptools ];
buildInputs = lib.optionals stdenv.hostPlatform.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 ];
};
}