Files
nixpkgs/pkgs/development/python-modules/mobly/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}