30 lines
726 B
Nix
30 lines
726 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adafruit-platformdetect";
|
|
version = "3.4.1";
|
|
|
|
src = fetchPypi {
|
|
pname = "Adafruit-PlatformDetect";
|
|
inherit version;
|
|
sha256 = "31275dcf949c8b00598aaf2b0da65d970a0cba28e7cb45691d5f354b8e82fe85";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|