{ lib, buildPythonPackage, fetchPypi, rustPlatform, pytestCheckHook, }: buildPythonPackage rec { pname = "loro"; version = "1.6.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-9UO4XHf3Nm3yFi3hwA490sLHUXG36WcM/8C2rFYdcpM="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-sTJ2jA/TLoVp7UTC2YMKzuJi1SxldG8gj3YGPbVco5s="; }; build-system = [ rustPlatform.maturinBuildHook rustPlatform.cargoSetupHook ]; nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Data collaborative and version-controlled JSON with CRDTs"; homepage = "https://github.com/loro-dev/loro-py"; changelog = "https://github.com/loro-dev/loro-py/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dmadisetti ]; }; }