2021-01-24 08:35:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-26 11:04:44 +00:00
|
|
|
pname = "adafruit-platformdetect";
|
2021-05-08 10:40:11 +01:00
|
|
|
version = "3.11.0";
|
2021-01-24 08:35:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-03-26 11:04:44 +00:00
|
|
|
pname = "Adafruit-PlatformDetect";
|
|
|
|
inherit version;
|
2021-05-08 10:40:11 +01:00
|
|
|
sha256 = "sha256-FgE0/OnqUuzpC5jCM4Q1g49F3fg1Mdstr7nys7G1MOs=";
|
2021-01-24 08:35:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
# Project has not published tests yet
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "adafruit_platformdetect" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Platform detection for use by Adafruit libraries";
|
|
|
|
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|