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