Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 54 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, rustPlatform, fetchFromGitHub, libiconv, dirty-equals, pytestCheckHook, nix-update-script,}:
buildPythonPackage rec { pname = "jiter"; version = "0.12.0"; pyproject = true;
src = fetchFromGitHub { owner = "pydantic"; repo = "jiter"; tag = "v${version}"; hash = "sha256-d87RUXKEmZXxVQZnAvjwRKSP6F3Z+kXxg/LdY2l9B+k="; };
postPatch = '' cp ${./Cargo.lock} Cargo.lock '';
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
buildAndTestSubdir = "crates/jiter-python";
nativeBuildInputs = [ rustPlatform.cargoSetupHook ];
build-system = [ rustPlatform.maturinBuildHook ];
buildInputs = [ libiconv ];
pythonImportsCheck = [ "jiter" ];
nativeCheckInputs = [ dirty-equals pytestCheckHook ];
passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
meta = { description = "Fast iterable JSON parser"; homepage = "https://github.com/pydantic/jiter/"; changelog = "https://github.com/pydantic/jiter/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; };}