nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 python-dateutil,
10 pytz,
11}:
12
13buildPythonPackage rec {
14 pname = "py-nightscout";
15 version = "1.3.3";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "marciogranzotto";
20 repo = "py-nightscout";
21 rev = "v${version}";
22 sha256 = "0kslmm3wrxhm307nqmjmq8i8vy1x6mjaqlgba0hgvisj6b4hx65k";
23 };
24
25 propagatedBuildInputs = [
26 python-dateutil
27 pytz
28 aiohttp
29 ];
30
31 nativeCheckInputs = [
32 aioresponses
33 pytestCheckHook
34 pytest-asyncio
35 ];
36
37 pythonImportsCheck = [ "py_nightscout" ];
38
39 meta = {
40 description = "Python library that provides an interface to Nightscout";
41 homepage = "https://github.com/marciogranzotto/py-nightscout";
42 license = with lib.licenses; [ mit ];
43 maintainers = with lib.maintainers; [ fab ];
44 };
45}