Files
nixpkgs/pkgs/development/python-modules/loro/default.nix
2026-08-03 00:40:53 +02:00

43 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
rustPlatform,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "loro";
version = "1.13.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ekTbRQvuxxz6Ehkt0RzDJ+NwySD85g1I8gyHHB4z2Ak=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-qlN+ivmnHuTakqydLKjwPwJm4c2q5TywE6yaj/dWiXs=";
};
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/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
dmadisetti
];
};
}