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";
|
2022-02-11 11:28:03 +00:00
|
|
|
version = "3.2.0";
|
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;
|
2022-02-11 11:28:03 +00:00
|
|
|
sha256 = "sha256-cwqhUzfDjwRG++CPbGwjcO4B05USU2nUtw4IseLuMO4=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|