depot/third_party/nixpkgs/pkgs/development/python-modules/mypy-protobuf/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

45 lines
848 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, protobuf
, types-protobuf
, grpcio-tools
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mypy-protobuf";
version = "3.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-JPOwrssGZW6YP1jgfHMqkFd7nXrz4QZvwrZju/A3Akg=";
};
propagatedBuildInputs = [
protobuf
types-protobuf
grpcio-tools
];
doCheck = false; # ModuleNotFoundError: No module named 'testproto'
checkInputs = [
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 ];
};
}