Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, rustPlatform, fetchFromGitHub, libiconv, dirty-equals, pytestCheckHook, nix-update-script,}:
buildPythonPackage rec { pname = "jiter"; version = "0.8.2"; pyproject = true;
src = fetchFromGitHub { owner = "pydantic"; repo = "jiter"; tag = "v${version}"; hash = "sha256-6FPwQ6t/zLB86k97S+6z5xWKBPJvjZ5/x3KrxOOT1gk="; };
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 ]; };}