blob: 2a70820497031dde79cdf4ce9cf374e9836e4f63 (
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
51
52
53
54
55
56
57
58
59
60
61
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, poetry-dynamic-versioning
, pydantic
, pytestCheckHook
, pytest-benchmark
, typing-extensions
}:
buildPythonPackage rec {
pname = "pure-protobuf";
version = "3.0.1"; # Komikku not launching w/ 3.0.0, #280551
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "eigenein";
repo = "protobuf";
rev = "refs/tags/${version}";
hash = "sha256-sGKnta+agrpJkQB0twFkqRreD5WB2O/06g75N0ic4mc=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
typing-extensions
];
nativeCheckInputs = [
pydantic
pytestCheckHook
pytest-benchmark
];
pytestFlagsArray = [
"--benchmark-disable"
];
pythonImportsCheck = [
"pure_protobuf"
];
meta = with lib; {
description = "Python implementation of Protocol Buffers with dataclass-based schemas";
homepage = "https://github.com/eigenein/protobuf";
changelog = "https://github.com/eigenein/protobuf/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu ];
};
}
|