blob: 0010e40800ec01e81a1dc64c09372d0e31815a83 (
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
|
{ lib
, fetchPypi
, buildPythonPackage
, protobuf
, types-protobuf
, grpcio-tools
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mypy-protobuf";
version = "3.5.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-IfJw2gqXkqnax2sN9GPAJ+VhZkq2lzxZvk5NBk3+Z9w=";
};
propagatedBuildInputs = [
protobuf
types-protobuf
grpcio-tools
];
doCheck = false; # ModuleNotFoundError: No module named 'testproto'
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mypy_protobuf"
];
meta = with lib; {
description = "Generate mypy stub files from protobuf specs";
homepage = "https://github.com/dropbox/mypy-protobuf";
license = licenses.asl20;
maintainers = with maintainers; [ lnl7 ];
};
}
|