Commit 1c7a42f6 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.nad-receiver: add standard-telnetlib for Python 3.13

parent 593d18f4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{
  lib,
  pyserial,
  buildPythonPackage,
  fetchFromGitHub,
  pyserial,
  pytestCheckHook,
  pythonAtLeast,
  pythonOlder,
  setuptools,
  standard-telnetlib,
}:

buildPythonPackage rec {
@@ -13,6 +15,8 @@ buildPythonPackage rec {
  version = "0.3.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "joopert";
    repo = "nad_receiver";
@@ -22,7 +26,7 @@ buildPythonPackage rec {

  build-system = [ setuptools ];

  dependencies = [ pyserial ];
  dependencies = [ pyserial ] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];

  nativeCheckInputs = [ pytestCheckHook ];