mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
29 lines
694 B
Nix
29 lines
694 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Adafruit-PlatformDetect";
|
|
version = "2.28.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "aa272605fd8a2ddcc6e5dd8151d628f76a9468c97ba7e4e315d6bc78b9bfb8f8";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|