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