mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-madvr2";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iloveicedgreentea";
|
|
repo = "py-madvr";
|
|
tag = "v${version}";
|
|
hash = "sha256-yW2w0XwTRRT0h2spblziAkayklYZZi1uU1FJdiTSr6Y=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "pymadvr" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: Expected 'mock' to have been called once. Called 0 times.
|
|
"test_power_off"
|
|
# tests connect to 192.168.1.100
|
|
"test_basic_connection"
|
|
"test_display_message"
|
|
"test_ha_command_formats"
|
|
"test_open_connection"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/iloveicedgreentea/py-madvr/releases/tag/${src.tag}";
|
|
description = "Control MadVR Envy over IP";
|
|
homepage = "https://github.com/iloveicedgreentea/py-madvr";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|