~andir/nixpkgs-dev

pythonPackages.pyfirmata: init at 1.1.0 v1 PROPOSED

William Casarin: 1
 pythonPackages.pyfirmata: init at 1.1.0

 2 files changed, 23 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~andir/nixpkgs-dev/patches/22718/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] pythonPackages.pyfirmata: init at 1.1.0 Export this patch

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
Reviewed-by: Matthias Beyer <mail@beyermatthias.de>