Unverified Commit 1fabef43 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.nxt-python: modernize, fix build (#434945)

parents 34c07125 e7b0cea4
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@
  poetry-core,
  pybluez,
  pytestCheckHook,
  pythonOlder,
  pyusb,
  pillow,
}:

buildPythonPackage rec {
@@ -14,8 +14,6 @@ buildPythonPackage rec {
  version = "3.5.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "schodet";
    repo = "nxt-python";
@@ -25,7 +23,10 @@ buildPythonPackage rec {

  build-system = [ poetry-core ];

  dependencies = [ pyusb ];
  dependencies = [
    pyusb
    pillow
  ];

  optional-dependencies = {
    bluetooth = [ pybluez ];
@@ -35,11 +36,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "nxt" ];

  meta = with lib; {
  meta = {
    description = "Python driver/interface for Lego Mindstorms NXT robot";
    homepage = "https://github.com/schodet/nxt-python";
    changelog = "https://github.com/schodet/nxt-python/releases/tag/${src.tag}";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ ibizaman ];
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ ibizaman ];
  };
}