1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 python-dateutil,
10 pythonOlder,
11 pytz,
12}:
13
14buildPythonPackage rec {
15 pname = "py-nightscout";
16 version = "1.3.3";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "marciogranzotto";
23 repo = "py-nightscout";
24 rev = "v${version}";
25 sha256 = "0kslmm3wrxhm307nqmjmq8i8vy1x6mjaqlgba0hgvisj6b4hx65k";
26 };
27
28 propagatedBuildInputs = [
29 python-dateutil
30 pytz
31 aiohttp
32 ];
33
34 nativeCheckInputs = [
35 aioresponses
36 pytestCheckHook
37 pytest-asyncio
38 ];
39
40 pythonImportsCheck = [ "py_nightscout" ];
41
42 meta = with lib; {
43 description = "Python library that provides an interface to Nightscout";
44 homepage = "https://github.com/marciogranzotto/py-nightscout";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}