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