1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 pythonOlder,
7 smbus2,
8}:
9
10buildPythonPackage rec {
11 pname = "lcd-i2c";
12 version = "0.2.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-NYBaCXBmuTziT0WYEqrW10HRmRy3jpjH3YWQh5Y/TdQ=";
20 };
21
22 pythonRelaxDeps = [ "smbus2" ];
23
24 build-system = [ poetry-core ];
25
26 dependencies = [ smbus2 ];
27
28 # Module has no tests
29 doCheck = false;
30
31 # Needs /dev/i2c-1
32 # pythonImportsCheck = [ "lcd_i2c" ];
33
34 meta = with lib; {
35 description = "Library for interacting with an I2C LCD screen through Python";
36 homepage = "https://pypi.org/project/lcd-i2c/";
37 license = licenses.mit;
38 maintainers = with maintainers; [ oliver-koss ];
39 mainProgram = "lcd-i2c";
40 };
41}