Unverified Commit a85a50be authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python313Packages.loro: init at 1.5.4 (#405160)

parents 8fa7c7ad 81cdc876
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  rustPlatform,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "loro";
  version = "1.5.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vC1SLkwCkiytZe9d9t1OH+Vd360657XxdU81bM9C9jk=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-cjIHU2aMxkYMoulePmxFhuZrqMbnOkEL+Ar75+KCVFw=";
  };

  build-system = [
    rustPlatform.maturinBuildHook
    rustPlatform.cargoSetupHook
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # Upstream test has hardcoded version and is rarely updated.
    # See https://github.com/loro-dev/loro-py/issues/19
    "test_version"
  ];

  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
    ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -8723,6 +8723,8 @@ self: super: with self; {
  loqedapi = callPackage ../development/python-modules/loqedapi { };
  loro = callPackage ../development/python-modules/loro { };
  losant-rest = callPackage ../development/python-modules/losant-rest { };
  lottie = callPackage ../development/python-modules/lottie { };