f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
44 lines
944 B
Nix
44 lines
944 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydexcom";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gagebenne";
|
|
repo = "pydexcom";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-gMUdVdO2Yy41Nl+mn9dEegb6/IRBwoBviPhuz3CMfS8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/gagebenne/pydexcom/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|