From f558205f4d5465513db23322461b8bb15def3261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos=20Reis?= Date: Thu, 9 Jul 2026 12:34:59 +0100 Subject: [PATCH] python3Packages.pytest-mh: init at 1.0.29 --- .../python-modules/pytest-mh/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-mh/default.nix diff --git a/pkgs/development/python-modules/pytest-mh/default.nix b/pkgs/development/python-modules/pytest-mh/default.nix new file mode 100644 index 000000000000..74104e307408 --- /dev/null +++ b/pkgs/development/python-modules/pytest-mh/default.nix @@ -0,0 +1,54 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + hatch-vcs, + hatch-requirements-txt, + ansible-pylibssh, + colorama, + pytest, + pyyaml, + gitUpdater, +}: + +buildPythonPackage (finalAttrs: { + pname = "pytest-mh"; + version = "1.0.29"; + pyproject = true; + + src = fetchFromGitHub { + owner = "next-actions"; + repo = "pytest-mh"; + tag = finalAttrs.version; + hash = "sha256-1QaqHDS+eU1O2aLWtdd6XWxErwqONAPngKe8FqYAmJY="; + }; + + build-system = [ + hatchling + hatch-vcs + hatch-requirements-txt + ]; + + dependencies = [ + ansible-pylibssh + colorama + pytest + pyyaml + ]; + + # Patch requirements.txt out of the package + postInstall = '' + rm -f $out/lib/python*/site-packages/requirements.txt + ''; + + passthru.updateScript = gitUpdater { }; + + meta = { + description = "pytest plugin that allows you to run shell commands and scripts over SSH on remote Linux or Windows hosts"; + homepage = "https://github.com/next-actions/pytest-mh"; + changelog = "https://github.com/next-actions/pytest-mh/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ joaosreis ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e6b1042ae8ec..367d0e483420 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15823,6 +15823,8 @@ self: super: with self; { pytest-metadata = callPackage ../development/python-modules/pytest-metadata { }; + pytest-mh = callPackage ../development/python-modules/pytest-mh { }; + pytest-mock = callPackage ../development/python-modules/pytest-mock { }; pytest-mockito = callPackage ../development/python-modules/pytest-mockito { };