1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pyeight";
12 version = "0.3.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "mezz64";
19 repo = "pyEight";
20 rev = version;
21 hash = "sha256-JYmhEZQw11qPNV2jZhP+0VFb387kNom70R3C13PM7kc=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 async-timeout
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "pyeight" ];
33
34 meta = with lib; {
35 description = "Python library to interface with the Eight Sleep API";
36 homepage = "https://github.com/mezz64/pyEight";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}