1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, hatchling
5, pytestCheckHook
6, pythonOlder
7, requests
8, responses
9}:
10
11buildPythonPackage rec {
12 pname = "pywaterkotte";
13 version = "0.1.2";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "chboland";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-zK0x6LyXPPNPA20Zq+S1B1q7ZWGxQmWf4JxEfjNkPQw=";
23 };
24
25 nativeBuildInputs = [
26 hatchling
27 ];
28
29 propagatedBuildInputs = [
30 requests
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 responses
36 ];
37
38 pythonImportsCheck = [
39 "pywaterkotte"
40 ];
41
42 meta = with lib; {
43 description = "Library to communicate with Waterkotte heatpumps";
44 homepage = "https://github.com/chboland/pywaterkotte";
45 changelog = "https://github.com/chboland/pywaterkotte/releases/tag/v${version}";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}