1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 pytestCheckHook,
7 requests,
8 setuptools,
9 websocket-client,
10}:
11
12buildPythonPackage rec {
13 pname = "waterfurnace";
14 version = "1.2.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "sdague";
19 repo = "waterfurnace";
20 tag = "v${version}";
21 sha256 = "sha256-lix8dU9PxlsXIzKNFuUJkd80cUYXfTXSnFLu1ULACkE=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 click
28 requests
29 websocket-client
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "waterfurnace" ];
37
38 meta = {
39 description = "Python interface to waterfurnace geothermal systems";
40 mainProgram = "waterfurnace";
41 homepage = "https://github.com/sdague/waterfurnace";
42 changelog = "https://github.com/sdague/waterfurnace/blob/${src.tag}/HISTORY.rst";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}