python3Packages.py-nightscout: init at 1.3.2
This commit is contained in:
parent
ea34b818e2
commit
48e70f34bf
2 changed files with 52 additions and 0 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 ];
|
||||
};
|
||||
}
|
|
@ -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