libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / py-nightscout / default.nix
blobe690f1b1cacaf6fca992539b4cd2200b151a744c
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pytest-asyncio,
8   pytestCheckHook,
9   python-dateutil,
10   pythonOlder,
11   pytz,
14 buildPythonPackage rec {
15   pname = "py-nightscout";
16   version = "1.3.3";
17   format = "setuptools";
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "marciogranzotto";
23     repo = pname;
24     rev = "v${version}";
25     sha256 = "0kslmm3wrxhm307nqmjmq8i8vy1x6mjaqlgba0hgvisj6b4hx65k";
26   };
28   propagatedBuildInputs = [
29     python-dateutil
30     pytz
31     aiohttp
32   ];
34   nativeCheckInputs = [
35     aioresponses
36     pytestCheckHook
37     pytest-asyncio
38   ];
40   pythonImportsCheck = [ "py_nightscout" ];
42   meta = with lib; {
43     description = "Python library that provides an interface to Nightscout";
44     homepage = "https://github.com/marciogranzotto/py-nightscout";
45     license = with licenses; [ mit ];
46     maintainers = with maintainers; [ fab ];
47   };