8 , json-stream-rs-tokenizer
17 buildPythonPackage rec {
18 pname = "json-stream-rs-tokenizer";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
26 repo = "py-json-stream-rs-tokenizer";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-zo/jRAWSwcOnO8eU4KhDNz44P6xDGcrZf9CflwsSvF0=";
31 cargoDeps = rustPlatform.importCargoLock {
32 lockFile = ./Cargo.lock;
34 "utf8-read-0.4.0" = "sha256-L/NcgbB+2Rwtc+1e39fQh1D9S4RqQY6CCFOTh8CI8Ts=";
40 rustPlatform.cargoSetupHook
47 buildInputs = lib.optionals stdenv.isDarwin [
51 # Tests depend on json-stream, which depends on this package.
52 # To avoid infinite recursion, we only enable tests when building passthru.tests.
59 pythonImportsCheck = [
60 "json_stream_rs_tokenizer"
64 runTests = json-stream-rs-tokenizer.overrideAttrs (_: { doCheck = true; });
68 description = "A faster tokenizer for the json-stream Python library";
69 homepage = "https://github.com/smheidrich/py-json-stream-rs-tokenizer";
70 license = licenses.mit;
71 maintainers = with maintainers; [ winter ];