Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 40 lines 854 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, setuptools-scm 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "pydexcom"; 11 version = "0.3.1"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "gagebenne"; 16 repo = pname; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-VZ8Y8W3oEQ3W8eubMbHLfQAXK8cL6+OTyBFwtEe0cBE="; 19 }; 20 21 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 setuptools 25 setuptools-scm 26 ]; 27 28 propagatedBuildInputs = [ requests ]; 29 30 # tests are interacting with the Dexcom API 31 doCheck = false; 32 pythonImportsCheck = [ "pydexcom" ]; 33 34 meta = with lib; { 35 description = "Python API to interact with Dexcom Share service"; 36 homepage = "https://github.com/gagebenne/pydexcom"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}