python3Packages.geocachingapi: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-13 16:42:49 +02:00 committed by GitHub
parent d1c999a3bc
commit acd683b462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
, backoff , backoff
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
, setuptools-scm , setuptools-scm
, yarl , yarl
}: }:
@ -10,6 +11,9 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "geocachingapi"; pname = "geocachingapi";
version = "0.1.1"; version = "0.1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Sholofly"; owner = "Sholofly";
@ -33,7 +37,9 @@ buildPythonPackage rec {
# Tests require a token and network access # Tests require a token and network access
doCheck = false; doCheck = false;
pythonImportsCheck = [ "geocachingapi" ]; pythonImportsCheck = [
"geocachingapi"
];
meta = with lib; { meta = with lib; {
description = "Python API to control the Geocaching API"; description = "Python API to control the Geocaching API";