1{ lib, fetchPypi, buildPythonApplication, protobuf, pythonOlder }:
2
3buildPythonApplication rec {
4 pname = "mypy-protobuf";
5 version = "2.4";
6
7 disabled = pythonOlder "3.6";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "77e10c476cdd3ee14535c2357e64deac6b1a69f33eb500d795b064acda48c66f";
12 };
13
14 propagatedBuildInputs = [ protobuf ];
15
16 meta = with lib; {
17 description = "Generate mypy stub files from protobuf specs";
18 homepage = "https://github.com/dropbox/mypy-protobuf";
19 license = licenses.asl20;
20 maintainers = with maintainers; [ lnl7 ];
21 };
22}