43 lines
905 B
Nix
43 lines
905 B
Nix
{
|
|
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
|
|
];
|
|
};
|
|
}
|