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