Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
portpicker,
pyserial,
pyyaml,
timeout-decorator,
typing-extensions,
# tests
procps,
pytestCheckHook,
pytz,
}:
buildPythonPackage rec {
pname = "mobly";
version = "1.13";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = "mobly";
tag = version;
hash = "sha256-lQyhLZFA9lad7LYKa6AP+nQonTRtiFA8Egjo0ATbLVI=";
};
build-system = [ setuptools ];
dependencies = [
portpicker
pyserial
pyyaml
timeout-decorator
typing-extensions
];
nativeCheckInputs = [
procps
pytestCheckHook
pytz
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# cannot access /usr/bin/pgrep from the sandbox
"test_stop_standing_subproc"
"test_stop_standing_subproc_and_descendants"
"test_stop_standing_subproc_without_pipe"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
changelog = "https://github.com/google/mobly/blob/${src.rev}/CHANGELOG.md";
description = "Automation framework for special end-to-end test cases";
homepage = "https://github.com/google/mobly";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}