1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 requests, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "pydexcom"; 13 version = "0.3.2"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "gagebenne"; 20 repo = "pydexcom"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-46+Ml73F6EUbMwRJB93FD+No/g65RJwnCnFzH4Pb5ek="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 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 = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}