Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / py-nightscout / default.nix
blob3330b68c949e86afed0fb472aef5a89c6d8e2afc
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pytest-asyncio
7 , pytestCheckHook
8 , python-dateutil
9 , pythonOlder
10 , pytz
13 buildPythonPackage rec {
14   pname = "py-nightscout";
15   version = "1.3.3";
16   format = "setuptools";
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "marciogranzotto";
22     repo = pname;
23     rev = "v${version}";
24     sha256 = "0kslmm3wrxhm307nqmjmq8i8vy1x6mjaqlgba0hgvisj6b4hx65k";
25   };
27   propagatedBuildInputs = [
28     python-dateutil
29     pytz
30     aiohttp
31   ];
33   nativeCheckInputs = [
34     aioresponses
35     pytestCheckHook
36     pytest-asyncio
37   ];
40   pythonImportsCheck = [
41     "py_nightscout"
42   ];
44   meta = with lib; {
45     description = "Python library that provides an interface to Nightscout";
46     homepage = "https://github.com/marciogranzotto/py-nightscout";
47     license = with licenses; [ mit ];
48     maintainers = with maintainers; [ fab ];
49   };