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