Merge pull request #146362 from fabaff/py-nightscout

This commit is contained in:
Martin Weinelt 2021-11-20 23:00:30 +01:00 committed by GitHub
commit 12b52be6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,50 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "py-nightscout";
version = "1.3.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marciogranzotto";
repo = pname;
rev = "v${version}";
sha256 = "06i8vc7ykk5112y66cjixbrks46mdx3r0ygkmyah6gfgq1ddc39j";
};
propagatedBuildInputs = [
python-dateutil
pytz
aiohttp
];
checkInputs = [
aioresponses
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"py_nightscout"
];
meta = with lib; {
description = "Python library that provides an interface to Nightscout";
homepage = "https://github.com/marciogranzotto/py-nightscout";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -572,7 +572,7 @@
"nextbus" = ps: with ps; [ ]; # missing inputs: py_nextbusnext "nextbus" = ps: with ps; [ ]; # missing inputs: py_nextbusnext
"nextcloud" = ps: with ps; [ nextcloudmonitor ]; "nextcloud" = ps: with ps; [ nextcloudmonitor ];
"nfandroidtv" = ps: with ps; [ ]; # missing inputs: notifications-android-tv "nfandroidtv" = ps: with ps; [ ]; # missing inputs: notifications-android-tv
"nightscout" = ps: with ps; [ ]; # missing inputs: py-nightscout "nightscout" = ps: with ps; [ py-nightscout ];
"niko_home_control" = ps: with ps; [ niko-home-control ]; "niko_home_control" = ps: with ps; [ niko-home-control ];
"nilu" = ps: with ps; [ niluclient ]; "nilu" = ps: with ps; [ niluclient ];
"nissan_leaf" = ps: with ps; [ pycarwings2 ]; "nissan_leaf" = ps: with ps; [ pycarwings2 ];

View file

@ -538,6 +538,7 @@ in with py.pkgs; buildPythonApplication rec {
"neato" "neato"
"netatmo" "netatmo"
"nexia" "nexia"
"nightscout"
"no_ip" "no_ip"
"notify" "notify"
"notion" "notion"

View file

@ -6127,6 +6127,8 @@ in {
py-dmidecode = callPackage ../development/python-modules/py-dmidecode { }; py-dmidecode = callPackage ../development/python-modules/py-dmidecode { };
py-nightscout = callPackage ../development/python-modules/py-nightscout { };
py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { }; py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { };
py-ubjson = callPackage ../development/python-modules/py-ubjson { }; py-ubjson = callPackage ../development/python-modules/py-ubjson { };