~andir/nixpkgs-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] pythonPackages.pyfirmata: init at 1.1.0

William Casarin <jb55@jb55.com>
Details
Message ID
<20210515152500.31824-1-jb55@jb55.com>
DKIM signature
missing
Download raw message
Patch: +23 -0
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
Details
Message ID
<20210515180837.gjzkiof2jj3q5q7e@hoshi>
In-Reply-To
<20210515152500.31824-1-jb55@jb55.com> (view parent)
DKIM signature
missing
Download raw message
Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
William Casarin <jb55@jb55.com>
Details
Message ID
<20210517165001.ili2v32suyg332i2@monad>
In-Reply-To
<20210515180837.gjzkiof2jj3q5q7e@hoshi> (view parent)
DKIM signature
missing
Download raw message
On Sat, May 15, 2021 at 08:08:37PM +0200, Matthias Beyer wrote:
>Reviewed-by: Matthias Beyer <mail@beyermatthias.de>

Thanks!

PR'd: #123386

https://github.com/NixOS/nixpkgs/pull/123386
Reply to thread Export thread (mbox)