diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/py-nightscout/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/py-nightscout/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/py-nightscout/default.nix b/nixpkgs/pkgs/development/python-modules/py-nightscout/default.nix new file mode 100644 index 000000000000..e633e6ce81bf --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/py-nightscout/default.nix @@ -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 ]; + }; +} |