Merge pull request #146362 from fabaff/py-nightscout
This commit is contained in:
commit
12b52be6ae
4 changed files with 54 additions and 1 deletions
50
pkgs/development/python-modules/py-nightscout/default.nix
Normal file
50
pkgs/development/python-modules/py-nightscout/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -572,7 +572,7 @@
|
|||
"nextbus" = ps: with ps; [ ]; # missing inputs: py_nextbusnext
|
||||
"nextcloud" = ps: with ps; [ nextcloudmonitor ];
|
||||
"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 ];
|
||||
"nilu" = ps: with ps; [ niluclient ];
|
||||
"nissan_leaf" = ps: with ps; [ pycarwings2 ];
|
||||
|
|
|
@ -538,6 +538,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"neato"
|
||||
"netatmo"
|
||||
"nexia"
|
||||
"nightscout"
|
||||
"no_ip"
|
||||
"notify"
|
||||
"notion"
|
||||
|
|
|
@ -6127,6 +6127,8 @@ in {
|
|||
|
||||
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-ubjson = callPackage ../development/python-modules/py-ubjson { };
|
||||
|
|
Loading…
Reference in a new issue