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