blob: 1a71c5d179391636a3948fc882f70ed4814536b5 (
plain) (
blame)
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
55
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "heatzypy";
version = "2.1.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Cyr-ius";
repo = "heatzypy";
rev = "refs/tags/${version}";
hash = "sha256-O2HtCaNtBvjhjlSXLRhEuilI8z7nGgzFa8USYiHfZ+E=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "replace_by_workflow" "${version}"
'';
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
aiohttp
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"heatzypy"
];
meta = with lib; {
description = "Module to interact with Heatzy devices";
homepage = "https://github.com/Cyr-ius/heatzypy";
changelog = "https://github.com/cyr-ius/heatzypy/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fab ];
};
}
|