1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatch-vcs,
6 hatchling,
7 pythonOlder,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "pydexcom";
13 version = "0.4.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "gagebenne";
20 repo = "pydexcom";
21 tag = version;
22 hash = "sha256-cf3AhqaA5aij2NCeFqruoeE0ovJSgZgEnVHcE3iXJ1s=";
23 };
24
25 build-system = [
26 hatchling
27 hatch-vcs
28 ];
29
30 dependencies = [ requests ];
31
32 # Tests are interacting with the Dexcom API
33 doCheck = false;
34
35 pythonImportsCheck = [ "pydexcom" ];
36
37 meta = with lib; {
38 description = "Python API to interact with Dexcom Share service";
39 homepage = "https://github.com/gagebenne/pydexcom";
40 changelog = "https://github.com/gagebenne/pydexcom/releases/tag/${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}