diff options
Diffstat (limited to 'pkgs/development/python-modules/pycrdt/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pycrdt/default.nix | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pycrdt/default.nix b/pkgs/development/python-modules/pycrdt/default.nix index 85a994d9f201a..952052246a4a1 100644 --- a/pkgs/development/python-modules/pycrdt/default.nix +++ b/pkgs/development/python-modules/pycrdt/default.nix @@ -3,26 +3,34 @@ stdenv, buildPythonPackage, fetchFromGitHub, + + # buildInputs libiconv, - cargo, + + # nativeBuildInputs rustPlatform, - rustc, + + # tests + anyio, objsize, pydantic, pytestCheckHook, + trio, y-py, + + nix-update-script, }: buildPythonPackage rec { pname = "pycrdt"; - version = "0.8.24"; + version = "0.9.16"; pyproject = true; src = fetchFromGitHub { owner = "jupyter-server"; repo = "pycrdt"; rev = "refs/tags/v${version}"; - hash = "sha256-3j5OhjeVE42n4EEOOMUGlQGdnQ/xia0KD543uCMFpCo="; + hash = "sha256-AO5KGBG4I+D5q/VSifzmg0ImAujR1ol9zGU4Y61fImc="; }; postPatch = '' @@ -32,28 +40,32 @@ buildPythonPackage rec { cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; nativeBuildInputs = [ - cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook - rustc ]; - buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; + + dependencies = [ anyio ]; pythonImportsCheck = [ "pycrdt" ]; nativeCheckInputs = [ + anyio objsize pydantic pytestCheckHook + trio y-py ]; - meta = with lib; { + passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; }; + + meta = { description = "CRDTs based on Yrs"; homepage = "https://github.com/jupyter-server/pycrdt"; - changelog = "https://github.com/jupyter-server/pycrdt/releases/tag/${src.rev}"; - license = licenses.mit; - maintainers = teams.jupyter.members; + changelog = "https://github.com/jupyter-server/pycrdt/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; + license = lib.licenses.mit; + maintainers = lib.teams.jupyter.members; }; } |