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