1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "adafruit-platformdetect"; 10 version = "3.33.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 pname = "Adafruit-PlatformDetect"; 17 inherit version; 18 hash = "sha256-Fj+LUTovZm6t0YRCa8QtoTBal+PefCvTIl9OeBoac6U="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools-scm 23 ]; 24 25 # Project has not published tests yet 26 doCheck = false; 27 28 pythonImportsCheck = [ 29 "adafruit_platformdetect" 30 ]; 31 32 meta = with lib; { 33 description = "Platform detection for use by Adafruit libraries"; 34 homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}