1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pyjwt,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "millheater";
14 version = "0.13.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "Danielhiversen";
21 repo = "pymill";
22 tag = version; # https://github.com/Danielhiversen/pymill/issues/87
23 hash = "sha256-fdKMX85uo5L/1ko5aXHzLcWbr24StzRV38jjEbeRRkw=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 aiohttp
30 async-timeout
31 pyjwt
32 ];
33
34 # Project has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "mill" ];
38
39 meta = with lib; {
40 description = "Python library for Mill heater devices";
41 homepage = "https://github.com/Danielhiversen/pymill";
42 changelog = "https://github.com/Danielhiversen/pymill/releases/tag/${src.tag}";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}