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-11 08:45:21 +01:00
|
|
|
version = "3.13.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-11 08:45:21 +01:00
|
|
|
sha256 = "sha256-FlPd3bj2sU52nc2+XohNhBWRa+1Dr/SyaiSusxX6PeE=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|