2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-20 04:20:00 +00:00
|
|
|
pname = "adafruit-platformdetect";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.54.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchPypi {
|
2021-03-20 04:20:00 +00:00
|
|
|
pname = "Adafruit-PlatformDetect";
|
|
|
|
inherit version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-P+f7eBqD0/KIEry/807dQQCvtokB2cYu4i0H6CTYIWg=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
# Project has not published tests yet
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"adafruit_platformdetect"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Platform detection for use by Adafruit libraries";
|
|
|
|
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|