nixpkgs/pkgs/development/python-modules/mobly/default.nix
2024-05-22 17:32:03 +02:00

60 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
portpicker,
pyserial,
pyyaml,
timeout-decorator,
typing-extensions,
# tests
procps,
pytestCheckHook,
pytz,
}:
buildPythonPackage rec {
pname = "mobly";
version = "1.12.3";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = "mobly";
rev = "refs/tags/${version}";
hash = "sha256-hhI1jrHJk4wo49MK8J4VTS2dGmHG2kwzgZeSWBXdXkA=";
};
build-system = [ setuptools ];
dependencies = [
portpicker
pyserial
pyyaml
timeout-decorator
typing-extensions
];
nativeCheckInputs = [
procps
pytestCheckHook
pytz
];
__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 ];
};
}