1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6, setuptools 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "pydexcom"; 12 version = "0.3.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "gagebenne"; 19 repo = "pydexcom"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-46+Ml73F6EUbMwRJB93FD+No/g65RJwnCnFzH4Pb5ek="; 22 }; 23 24 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 requests 33 ]; 34 35 # Tests are interacting with the Dexcom API 36 doCheck = false; 37 38 pythonImportsCheck = [ 39 "pydexcom" 40 ]; 41 42 meta = with lib; { 43 description = "Python API to interact with Dexcom Share service"; 44 homepage = "https://github.com/gagebenne/pydexcom"; 45 changelog = "https://github.com/gagebenne/pydexcom/releases/tag/${version}"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}