python310Packages.y-py: init at 0.6.0

This commit is contained in:
Robert Schütz 2023-03-09 14:03:42 -08:00
parent 510680e5e8
commit 57d6016929
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchPypi
, rustPlatform
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "y-py";
version = "0.6.0";
format = "pyproject";
src = fetchPypi {
pname = "y_py";
inherit version;
hash = "sha256-RoNhaffcKVffhRPP5LwgCRdbOkc+Ywr0IajnXuHEj5g=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-tpUDGBIHqXsKPsK+1h2sNuiV2I0pGVBokKh+hdFazRQ=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
rust.cargo
rust.rustc
];
pythonImportsCheck = [ "y_py" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python bindings for Y-CRDT";
homepage = "https://github.com/y-crdt/ypy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -12677,6 +12677,8 @@ self: super: with self; {
xyzservices = callPackage ../development/python-modules/xyzservices { };
y-py = callPackage ../development/python-modules/y-py { };
yabadaba = callPackage ../development/python-modules/yabadaba { };
yahooweather = callPackage ../development/python-modules/yahooweather { };