mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
95 lines
2.0 KiB
Nix
95 lines
2.0 KiB
Nix
{ lib
|
|
, aenum
|
|
, aiohttp
|
|
, aiohttp-wsgi
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, requests
|
|
, websocket-client
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "homematicip";
|
|
version = "1.0.13";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hahn-th";
|
|
repo = "homematicip-rest-api";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-bNVvQbwtef7Q0OBtR/8vsDDPkgGQgzdBC3QyoxLW3Wo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aenum
|
|
aiohttp
|
|
async-timeout
|
|
requests
|
|
websocket-client
|
|
websockets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiohttp-wsgi
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=auto"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Assert issues with datetime
|
|
"test_contact_interface_device"
|
|
"test_dimmer"
|
|
"test_external_device"
|
|
"test_heating_failure_alert_group"
|
|
"test_heating"
|
|
"test_humidity_warning_rule_group"
|
|
"test_meta_group"
|
|
"test_pluggable_switch_measuring"
|
|
"test_rotary_handle_sensor"
|
|
"test_security_group"
|
|
"test_security_zone"
|
|
"test_shutter_device"
|
|
"test_smoke_detector"
|
|
"test_switching_group"
|
|
"test_temperature_humidity_sensor_outdoor"
|
|
"test_wall_mounted_thermostat_pro"
|
|
"test_weather_sensor"
|
|
# Random failures
|
|
"test_home_getSecurityJournal"
|
|
"test_home_unknown_types"
|
|
# Requires network access
|
|
"test_websocket"
|
|
] ++ lib.optionals (pythonAtLeast "3.10") [
|
|
"test_connection_lost"
|
|
"test_user_disconnect_and_reconnect"
|
|
"test_ws_message"
|
|
"test_ws_no_pong"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"homematicip"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for the homematicIP REST API";
|
|
homepage = "https://github.com/hahn-th/homematicip-rest-api";
|
|
changelog = "https://github.com/hahn-th/homematicip-rest-api/releases/tag/${version}";
|
|
license = with licenses; [ gpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|