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