nixpkgs/pkgs/development/python-modules/mypy-protobuf/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
854 B
Nix

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