24 buildPythonPackage rec {
29 src = fetchFromGitHub {
30 owner = "jupyter-server";
32 rev = "refs/tags/${version}";
33 hash = "sha256-TKSBTpOvAr1/HBn3HnwNdEwM1hgbvPdice8bcVhVmH0=";
37 cp ${./Cargo.lock} Cargo.lock
40 cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
43 rustPlatform.cargoSetupHook
44 rustPlatform.maturinBuildHook
47 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
49 dependencies = [ anyio ];
51 pythonImportsCheck = [ "pycrdt" ];
62 passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
65 description = "CRDTs based on Yrs";
66 homepage = "https://github.com/jupyter-server/pycrdt";
67 changelog = "https://github.com/jupyter-server/pycrdt/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
68 license = lib.licenses.mit;
69 maintainers = lib.teams.jupyter.members;