blob: 0ba3442edbb35fa8b2a513330940edcb81afec25 (
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
|
{
lib,
authlib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
poetry-core,
requests,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyvicare";
version = "2.55.1";
pyproject = true;
src = fetchFromGitHub {
owner = "openviess";
repo = "PyViCare";
tag = version;
hash = "sha256-fKQ0NXUsL8NgmKr8BEoGV2fty39l19fg4B6Eg90X2kI=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.1.0"' 'version = "${version}"'
'';
build-system = [ poetry-core ];
dependencies = [
authlib
deprecated
requests
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "PyViCare" ];
meta = {
changelog = "https://github.com/openviess/PyViCare/releases/tag/${src.tag}";
description = "Python Library to access Viessmann ViCare API";
homepage = "https://github.com/somm15/PyViCare";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|