python3Packages.pytest-mh: init at 1.0.29

This commit is contained in:
João Santos Reis
2026-07-09 14:34:43 +01:00
parent 79ef000f82
commit f558205f4d
2 changed files with 56 additions and 0 deletions
@@ -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 ];
};
})
+2
View File
@@ -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 { };