blob: da82b33baac98d69a4b84acb052fad687e958b78 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
typing-extensions,
pytestCheckHook,
pytest-benchmark,
pytest-cov-stub,
pydantic,
}:
buildPythonPackage rec {
pname = "pure-protobuf";
version = "3.1.5";
pyproject = true;
# < 3.10 requires get-annotations which isn't packaged yet
src = fetchFromGitHub {
owner = "eigenein";
repo = "protobuf";
tag = version;
hash = "sha256-Gr5fKpagSUzH34IKHb+pBta4q71AqYa/KG9XW2AxZqk=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
typing-extensions
];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
pydantic
pytestCheckHook
pytest-benchmark
pytest-cov-stub
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "pure_protobuf" ];
meta = {
description = "Python implementation of Protocol Buffers with dataclass-based schemas";
homepage = "https://github.com/eigenein/protobuf";
changelog = "https://github.com/eigenein/protobuf/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chuangzhu ];
};
}
|