blob: 4c2d8701a56f5f756f8173a0e657867849ee8da0 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
# dependencies
msgpack,
# testing
pydantic,
pytestCheckHook,
python-dateutil,
pytz,
}:
buildPythonPackage rec {
pname = "ormsgpack";
version = "1.12.2";
pyproject = true;
src = fetchFromGitHub {
owner = "aviramha";
repo = "ormsgpack";
tag = version;
hash = "sha256-a2PgCCIPPJt6YNW7UFl9urYZkAoVj5Np0lbv4QfzMAs=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-PLLSVoQLsbTOIMqOsaaei/dm8SybfyqP0WLJW8hTOoo=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
# requires nightly features (feature(portable_simd))
env.RUSTC_BOOTSTRAP = true;
dependencies = [
msgpack
];
nativeCheckInputs = [
pytestCheckHook
pydantic
python-dateutil
pytz
];
pythonImportsCheck = [
"ormsgpack"
];
meta = {
description = "Fast msgpack serialization library for Python derived from orjson";
homepage = "https://github.com/aviramha/ormsgpack";
changelog = "https://github.com/aviramha/ormsgpack/releases/tag/${version}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ sarahec ];
};
}
|