python3Packages.garminconnect-aio: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-02-05 23:48:50 +01:00 committed by Jonathan Ringer
parent 08f41c95f2
commit f1c1891678

View file

@ -3,18 +3,22 @@
, brotlipy
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "garminconnect-aio";
version = "0.1.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect-aio";
rev = version;
sha256 = "0s2gpy5hciv9akqqhxy0d2ywp6jp9mmdngx34q7fq3xn668kcrhr";
hash = "sha256-GWY2kTG2D+wOJqM/22pNV5rLvWjAd4jxVGlHBou/T2g=";
};
propagatedBuildInputs = [
@ -26,7 +30,9 @@ buildPythonPackage rec {
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "garminconnect_aio" ];
pythonImportsCheck = [
"garminconnect_aio"
];
meta = with lib; {
description = "Python module to interact with Garmin Connect";