mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
f0fa6364de
Apply suggestions from code review Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
43 lines
919 B
Nix
43 lines
919 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
# build-system
|
|
setuptools-scm,
|
|
# dependencies
|
|
pyserial,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adafruit-board-toolkit";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-k8TwmztGnCqS6F5ZrXSBnefZzc2kvuUqYxGAejRAdsI=";
|
|
};
|
|
|
|
# Project has not published tests yet
|
|
doCheck = false;
|
|
|
|
build-system = [
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
pyserial
|
|
];
|
|
pythonImportsCheck = [ "adafruit_board_toolkit" ];
|
|
meta = {
|
|
description = "CircuitPython board identification and information";
|
|
homepage = "https://github.com/adafruit/Adafruit_Board_Toolkit";
|
|
changelog = "https://github.com/adafruit/Adafruit_Board_Toolkit/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ talhaHavadar ];
|
|
};
|
|
}
|