1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "asyncsleepiq";
10 version = "1.2.3";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-X+bJyzQxWJaS1/KNOE/3zQKSbwUpm9XN35HYf6s+BPs=";
18 };
19
20 propagatedBuildInputs = [
21 aiohttp
22 ];
23
24 # upstream has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "asyncsleepiq"
29 ];
30
31 meta = with lib; {
32 description = "Async interface to SleepIQ API";
33 homepage = "https://github.com/kbickar/asyncsleepiq";
34 license = licenses.mit;
35 maintainers = with maintainers; [ dotlambda ];
36 };
37}