pyFirmata is a python library for Firmata, a microcontroller protocol.
Firmata can be used to drive arduino boards with python, using standard
firmata firmware.
Signed-off-by: William Casarin <jb55@jb55.com>
---
.../python-modules/pyfirmata/default.nix | 21 +++++++++++++++++++
pkgs/top-level/python-packages.nix | 2 ++
2 files changed, 23 insertions(+)
create mode 100644 pkgs/development/python-modules/pyfirmata/default.nix
diff --git a/pkgs/development/python-modules/pyfirmata/default.nix b/pkgs/development/python-modules/pyfirmata/default.nix
new file mode 100644
index 00000000000..94b354c0625
--- /dev/null
+++ b/pkgs/development/python-modules/pyfirmata/default.nix
@@ -0,0 +1,21 @@
+{ lib, stdenv, pyserial, buildPythonPackage, fetchPypi }:
+
+buildPythonPackage rec {
+ pname = "pyfirmata";
+ version = "1.1.0";
+
+ src = fetchPypi {
+ inherit version;
+ pname = "pyFirmata";
+ sha256 = "cc180d1b30c85a2bbca62c15fef1b871db048cdcfa80959968356d97bd3ff08e";
+ };
+
+ propagatedBuildInputs = [ pyserial ];
+
+ meta = with lib; {
+ homepage = "https://pypi.python.org/pypi/pyFirmata";
+ description = "a Python interface for the Firmata protocol";
+ maintainers = with maintainers; [ jb55 ];
+ license = licenses.mit;
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index bc88020a7f3..b2faf436cdc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5591,6 +5591,8 @@ in {
pyfiglet = callPackage ../development/python-modules/pyfiglet { };
+ pyfirmata = callPackage ../development/python-modules/pyfirmata { };
+
pyfnip = callPackage ../development/python-modules/pyfnip { };
pyflakes = callPackage ../development/python-modules/pyflakes { };
--
2.30.0