python310Packages.adafruit-platformdetect: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-06-01 15:36:47 +02:00 committed by GitHub
parent 07ec6f9b96
commit c890f9ae89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools-scm , setuptools-scm
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -9,10 +10,12 @@ buildPythonPackage rec {
version = "3.23.0"; version = "3.23.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
pname = "Adafruit-PlatformDetect"; pname = "Adafruit-PlatformDetect";
inherit version; inherit version;
sha256 = "sha256-4OWDwvdQBtV+ZqpITr027z0jwfge5/yOof9Xm7QRtuM="; hash = "sha256-4OWDwvdQBtV+ZqpITr027z0jwfge5/yOof9Xm7QRtuM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [