From fb17a97f1728cb59e24e4a88f641ee7208ba3ac0 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Tue, 24 May 2022 08:46:14 -0700 Subject: [PATCH] nxt-python: init at 3.0.1 This is the latest version that works with python3. --- .../python-modules/nxt-python/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/nxt-python/default.nix diff --git a/pkgs/development/python-modules/nxt-python/default.nix b/pkgs/development/python-modules/nxt-python/default.nix new file mode 100644 index 000000000000..880111a4ed75 --- /dev/null +++ b/pkgs/development/python-modules/nxt-python/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchgit +, isPy3k +, pyusb +, pybluez +, pytest +, git +}: + +buildPythonPackage rec { + version = "3.0.1"; + pname = "nxt-python"; + format = "setuptools"; + + src = fetchgit { + url = "https://github.com/schodet/nxt-python.git"; + rev = version; + sha256 = "004c0dr6767bjiddvp0pchcx05falhjzj33rkk03rrl0ha2nhxvz"; + }; + + propagatedBuildInputs = [ pyusb pybluez pytest git ]; + + meta = with lib; { + description = "Python driver/interface for Lego Mindstorms NXT robot"; + homepage = "https://github.com/schodet/nxt-python"; + license = licenses.gpl3; + maintainers = with maintainers; [ ibizaman ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dd21231dfecd..2e5962f742de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5858,6 +5858,8 @@ in { nvchecker = callPackage ../development/python-modules/nvchecker { }; + nxt-python = callPackage ../development/python-modules/nxt-python { }; + python-nvd3 = callPackage ../development/python-modules/python-nvd3 { }; py-deprecate = callPackage ../development/python-modules/py-deprecate { };