diff options
author | Anthony Roussel <anthony@roussel.dev> | 2024-05-04 19:36:58 +0200 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2024-05-04 19:38:14 +0200 |
commit | 71bb27da54522002b49cdc85fb80827b87801971 (patch) | |
tree | ab5c3a6277896bb031764ad4a008711ab60885c3 | |
parent | 471a3b0c6491fbadd06c4b4a2302cb9a68a20e11 (diff) |
python312Packages.mypy-protobuf: add passthru.tests.version
-rw-r--r-- | pkgs/development/python-modules/mypy-protobuf/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mypy-protobuf/default.nix b/pkgs/development/python-modules/mypy-protobuf/default.nix index b48d594134190..164a926e229ff 100644 --- a/pkgs/development/python-modules/mypy-protobuf/default.nix +++ b/pkgs/development/python-modules/mypy-protobuf/default.nix @@ -3,10 +3,12 @@ fetchPypi, grpcio-tools, lib, + mypy-protobuf, protobuf, pytestCheckHook, pythonOlder, pythonRelaxDepsHook, + testers, types-protobuf, }: @@ -38,11 +40,17 @@ buildPythonPackage rec { pythonImportsCheck = [ "mypy_protobuf" ]; + passthru.tests.version = testers.testVersion { + package = mypy-protobuf; + command = "${lib.getExe mypy-protobuf} --version"; + }; + meta = { changelog = "https://github.com/nipunn1313/mypy-protobuf/blob/v${version}/CHANGELOG.md"; description = "Generate mypy stub files from protobuf specs"; homepage = "https://github.com/nipunn1313/mypy-protobuf"; license = lib.licenses.asl20; + mainProgram = "protoc-gen-mypy"; maintainers = with lib.maintainers; [ lnl7 ]; }; } |