blob: a597c19e060edb9b591adc28a088f4f3be60c2fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
respx,
}:
buildPythonPackage rec {
pname = "pyecoforest";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pjanuario";
repo = "pyecoforest";
tag = "v${version}";
hash = "sha256-C8sFq0vsVsq6irWbRd0eq18tfKu0qRRBZHt23CiDTGU=";
};
build-system = [ poetry-core ];
dependencies = [ httpx ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
respx
];
disabledTests = [
# respx.models.AllMockedAssertionError
"test_get"
"test_get_errors"
"test_set_temperature"
"test_set_power"
"test_turn"
];
pythonImportsCheck = [ "pyecoforest" ];
meta = {
description = "Module for interacting with Ecoforest devices";
homepage = "https://github.com/pjanuario/pyecoforest";
changelog = "https://github.com/pjanuario/pyecoforest/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|