about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lcd-i2c
diff options
context:
space:
mode:
authorOliver Koss <oliver.koss06@gmail.com>2023-12-01 22:40:34 +0100
committerOliver Koss <oliver.koss06@gmail.com>2023-12-01 22:46:33 +0100
commiteecc2530d9853a84ae55507b5db22bc40a164723 (patch)
tree98b62b911ed52adaa9f7e5e5cbe95444af6e7c84 /pkgs/development/python-modules/lcd-i2c
parentc074160dcfa338f8424c440ccb0f0a5412de0dbf (diff)
python3Packages.lcd-i2c: init at 0.2.3
Diffstat (limited to 'pkgs/development/python-modules/lcd-i2c')
-rw-r--r--pkgs/development/python-modules/lcd-i2c/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/lcd-i2c/default.nix b/pkgs/development/python-modules/lcd-i2c/default.nix
new file mode 100644
index 0000000000000..7ba9be221dde1
--- /dev/null
+++ b/pkgs/development/python-modules/lcd-i2c/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, python3
+, fetchPypi
+, buildPythonPackage
+, smbus2
+, poetry-core
+}:
+
+buildPythonPackage rec {
+  pname = "lcd-i2c";
+  version = "0.2.3";
+  pyproject = true;
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-NYBaCXBmuTziT0WYEqrW10HRmRy3jpjH3YWQh5Y/TdQ=";
+  };
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    smbus2
+  ];
+
+  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";
+  };
+}