Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pydexcom / default.nix
blobbd639205c111685bc96ead7bcefd4244d201fd1c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , requests
6 , setuptools
7 , setuptools-scm
8 }:
10 buildPythonPackage rec {
11   pname = "pydexcom";
12   version = "0.3.2";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "gagebenne";
19     repo = "pydexcom";
20     rev = "refs/tags/${version}";
21     hash = "sha256-46+Ml73F6EUbMwRJB93FD+No/g65RJwnCnFzH4Pb5ek=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     setuptools-scm
27   ];
29   propagatedBuildInputs = [
30     requests
31   ];
33   # Tests are interacting with the Dexcom API
34   doCheck = false;
36   pythonImportsCheck = [
37     "pydexcom"
38   ];
40   meta = with lib; {
41     description = "Python API to interact with Dexcom Share service";
42     homepage = "https://github.com/gagebenne/pydexcom";
43     changelog = "https://github.com/gagebenne/pydexcom/releases/tag/${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };