Files
nixpkgs/pkgs/development/python-modules/loro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
905 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
rustPlatform,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "loro";
version = "1.8.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Is+xliW9ckXpdH7p1DsQURwWo1d1o4z5FNx0hjxNvog=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-b1zzDVK/pdxkAUeksmZZ8sbgyrXtJbwAfpNxkH4PevY=";
};
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
];
};
}