15 buildPythonPackage rec {
16 pname = "mypy-protobuf";
20 disabled = pythonOlder "3.8";
23 inherit pname version;
24 hash = "sha256-AvJC6zQJ9miJ8rGjqlg1bsTZCc3Q+TEVYi6ecDZuyjw=";
27 pythonRelaxDeps = [ "protobuf" ];
29 build-system = [ setuptools ];
37 doCheck = false; # ModuleNotFoundError: No module named 'testproto'
39 nativeCheckInputs = [ pytestCheckHook ];
41 pythonImportsCheck = [ "mypy_protobuf" ];
43 passthru.tests.version = testers.testVersion {
44 package = mypy-protobuf;
45 command = "${lib.getExe mypy-protobuf} --version";
49 changelog = "https://github.com/nipunn1313/mypy-protobuf/blob/v${version}/CHANGELOG.md";
50 description = "Generate mypy stub files from protobuf specs";
51 homepage = "https://github.com/nipunn1313/mypy-protobuf";
52 license = lib.licenses.asl20;
53 mainProgram = "protoc-gen-mypy";
54 maintainers = with lib.maintainers; [ lnl7 ];