diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-17 10:12:20 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-20 17:32:47 +0100 |
commit | 48e70f34bf47d0651b0e1b718507b1e368e8c079 (patch) | |
tree | 3737533957709410db2586adcc891d9cdd3c4d32 /pkgs/development/python-modules/py-nightscout | |
parent | ea34b818e222ad264264f8dc5344637ea4a6e8aa (diff) |
python3Packages.py-nightscout: init at 1.3.2
Diffstat (limited to 'pkgs/development/python-modules/py-nightscout')
-rw-r--r-- | pkgs/development/python-modules/py-nightscout/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-nightscout/default.nix b/pkgs/development/python-modules/py-nightscout/default.nix new file mode 100644 index 0000000000000..e633e6ce81bf9 --- /dev/null +++ b/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 ]; + }; +} |