2021-01-09 10:05:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydexcom";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "0.2.2";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gagebenne";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "sha256-8PE+MFQkuwYey82jNSRjMaK8kAhYSBbjqnsbGJHGW9I=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
# tests are interacting with the Dexcom API
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pydexcom" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API to interact with Dexcom Share service";
|
|
|
|
homepage = "https://github.com/gagebenne/pydexcom";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|