blob: 3e9e9cd357e6d1fc60ec800595dd330cfd80258b (
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
|
{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
websocket-client,
}:
buildPythonPackage (finalAttrs: {
pname = "waterfurnace";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sdague";
repo = "waterfurnace";
tag = "v${finalAttrs.version}";
hash = "sha256-1WHXhLLk9l/WQvmC6zrkbLFth9jf/M1vZsv05CZtevE=";
};
build-system = [ setuptools ];
dependencies = [
click
requests
websocket-client
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "waterfurnace" ];
meta = {
description = "Python interface to waterfurnace geothermal systems";
homepage = "https://github.com/sdague/waterfurnace";
changelog = "https://github.com/sdague/waterfurnace/blob/${finalAttrs.src.tag}/HISTORY.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "waterfurnace";
};
})
|