python3Packages.py-nightscout: init at 1.3.2

This commit is contained in:
Fabian Affolter 2021-11-17 10:12:20 +01:00
parent ea34b818e2
commit 48e70f34bf
2 changed files with 52 additions and 0 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

@ -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 { };