python311Packages.nxt-python: 3.0.1 -> 3.2.0

Diff: https://github.com/schodet/nxt-python/compare/refs/tags/3.0.1...3.2.0

Changelog: https://github.com/schodet/nxt-python/releases/tag/3.2.0
This commit is contained in:
Fabian Affolter 2023-06-24 19:20:28 +02:00
parent 8ca4d1baa6
commit cf7edf0cc0

View file

@ -1,25 +1,43 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchgit , fetchFromGitHub
, isPy3k
, pyusb
, pybluez , pybluez
, pytest , pytestCheckHook
, git , pythonOlder
, pyusb
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "3.0.1";
pname = "nxt-python"; pname = "nxt-python";
version = "3.2.0";
format = "setuptools"; format = "setuptools";
src = fetchgit { disabled = pythonOlder "3.7";
url = "https://github.com/schodet/nxt-python.git";
rev = version; src = fetchFromGitHub {
sha256 = "004c0dr6767bjiddvp0pchcx05falhjzj33rkk03rrl0ha2nhxvz"; owner = "schodet";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-PWeR8xteLMxlOHcJJCtTI0o8QNzwGJVkUACmvf4tXWY=";
}; };
propagatedBuildInputs = [ pyusb pybluez pytest git ]; propagatedBuildInputs = [
pyusb
];
passthru.optional-dependencies = {
bluetooth = [
pybluez
];
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"nxt"
];
meta = with lib; { meta = with lib; {
description = "Python driver/interface for Lego Mindstorms NXT robot"; description = "Python driver/interface for Lego Mindstorms NXT robot";