2021-09-16 15:29:19 -07:00
|
|
|
{ lib, fetchPypi, buildPythonApplication, protobuf, types-protobuf, grpcio-tools, pythonOlder }:
|
2018-08-17 01:34:39 +02:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mypy-protobuf";
|
2021-10-09 00:23:10 +02:00
|
|
|
version = "2.10";
|
2021-10-10 06:00:59 +02:00
|
|
|
format = "pyproject";
|
2021-03-29 10:58:52 -07:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-08-17 01:34:39 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-09 00:23:10 +02:00
|
|
|
sha256 = "1fed214e16351b09946770794a321a818abb744078b1d863a479da070028684c";
|
2018-08-17 01:34:39 +02:00
|
|
|
};
|
|
|
|
|
2021-09-16 15:29:19 -07:00
|
|
|
propagatedBuildInputs = [ protobuf types-protobuf grpcio-tools ];
|
2018-08-17 01:34:39 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-17 01:34:39 +02:00
|
|
|
description = "Generate mypy stub files from protobuf specs";
|
|
|
|
homepage = "https://github.com/dropbox/mypy-protobuf";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
};
|
|
|
|
}
|