blob: 97747ccfdf5b50e87f7df84263bf07b11d2c705d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, rustPlatform
, cargo
, rustc
, libiconv
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "y-py";
version = "0.6.2";
format = "pyproject";
src = fetchPypi {
pname = "y_py";
inherit version;
hash = "sha256-R1eoKlBAags6MzqgEiAZozG9bxbkn+1n3KQj+Siz/U0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-RXwrDSPU0wiprsUJwoDzti14H/+bSwy4hK4tYhNVfYw=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
cargo
rustc
];
buildInputs = lib.optional stdenv.isDarwin libiconv;
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 ];
};
}
|