567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
824 B
Nix
34 lines
824 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adafruit-platformdetect";
|
|
version = "3.85.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "adafruit_platformdetect";
|
|
inherit version;
|
|
hash = "sha256-WDUKqT3RZsS2e6PJR7B6LXMg0U5luS5Yc/32TQPj+T0=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
# Project has not published tests yet
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "adafruit_platformdetect" ];
|
|
|
|
meta = {
|
|
description = "Platform detection for use by Adafruit libraries";
|
|
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
|
|
changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|