1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 protobuf,
7 googleapis-common-protos,
8 pytestCheckHook,
9 pytz,
10}:
11
12buildPythonPackage rec {
13 pname = "proto-plus";
14 version = "1.26.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "googleapis";
19 repo = "proto-plus-python";
20 tag = "v${version}";
21 hash = "sha256-7FonHHXpgJC0vg9Y26bqz0g1NmLWwaZWyFZ0kv7PjY8=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ protobuf ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 pytz
31 googleapis-common-protos
32 ];
33
34 pytestFlagsArray = [
35 # pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
36 "-W"
37 "ignore::DeprecationWarning"
38 ];
39
40 pythonImportsCheck = [ "proto" ];
41
42 meta = with lib; {
43 description = "Beautiful, idiomatic protocol buffers in Python";
44 homepage = "https://github.com/googleapis/proto-plus-python";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ ruuda ];
47 };
48}