Files
nixpkgs/pkgs/development/python-modules/lcd-i2c/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

42 lines
805 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
pythonOlder,
smbus2,
}:
buildPythonPackage rec {
pname = "lcd-i2c";
version = "0.2.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-NYBaCXBmuTziT0WYEqrW10HRmRy3jpjH3YWQh5Y/TdQ=";
};
pythonRelaxDeps = [ "smbus2" ];
build-system = [ poetry-core ];
dependencies = [ smbus2 ];
# Module has no tests
doCheck = false;
# Needs /dev/i2c-1
# pythonImportsCheck = [ "lcd_i2c" ];
meta = {
description = "Library for interacting with an I2C LCD screen through Python";
homepage = "https://pypi.org/project/lcd-i2c/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ oliver-koss ];
mainProgram = "lcd-i2c";
};
}