diff options
Diffstat (limited to 'pkgs/development/python-modules/pydexcom/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pydexcom/default.nix | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pydexcom/default.nix b/pkgs/development/python-modules/pydexcom/default.nix index 412373f09a2..3a224354129 100644 --- a/pkgs/development/python-modules/pydexcom/default.nix +++ b/pkgs/development/python-modules/pydexcom/default.nix @@ -1,29 +1,48 @@ { lib , buildPythonPackage , fetchFromGitHub +, pythonOlder , requests +, setuptools +, setuptools-scm }: buildPythonPackage rec { pname = "pydexcom"; - version = "0.2.3"; + version = "0.3.2"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "gagebenne"; - repo = pname; - rev = version; - hash = "sha256-ItDGnUUUTwCz4ZJtFVlMYjjoBPn2h8QZgLzgnV2T/Qk="; + repo = "pydexcom"; + rev = "refs/tags/${version}"; + hash = "sha256-46+Ml73F6EUbMwRJB93FD+No/g65RJwnCnFzH4Pb5ek="; }; - propagatedBuildInputs = [ requests ]; + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; - # tests are interacting with the Dexcom API + propagatedBuildInputs = [ + requests + ]; + + # Tests are interacting with the Dexcom API doCheck = false; - pythonImportsCheck = [ "pydexcom" ]; + + 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 ]; }; |