Unverified Commit 8e936f9d authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

mcdreforged: 2.13.2 -> 2.14.4 (#365373)

parents 8e3c015c ce39a776
Loading
Loading
Loading
Loading
+1 −50
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  python3,
  testers,
  mcdreforged,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "mcdreforged";
  version = "2.13.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "MCDReforged";
    repo = "MCDReforged";
    tag = "v${version}";
    hash = "sha256-4podJ3InBnNc+t4BpCQrg2QbJ9ZJr5fmroXyzo7JrZw=";
  };

  build-system = [ python3.pkgs.setuptools ];

  dependencies = with python3.pkgs; [
    colorama
    colorlog
    packaging
    parse
    prompt-toolkit
    psutil
    requests
    resolvelib
    ruamel-yaml
    typing-extensions
  ];

  nativeCheckInputs = [ python3.pkgs.pytestCheckHook ];

  passthru.tests = {
    version = testers.testVersion { package = mcdreforged; };
  };

  meta = {
    description = "Rewritten version of MCDaemon, a python tool to control your Minecraft server";
    homepage = "https://mcdreforged.com";
    changelog = "https://github.com/MCDReforged/MCDReforged/releases/tag/v${version}";
    license = lib.licenses.lgpl3Only;
    maintainers = with lib.maintainers; [ moraxyc ];
    mainProgram = "mcdreforged";
  };
}
{ python3Packages }: with python3Packages; toPythonApplication mcdreforged
+67 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  setuptools,
  colorama,
  colorlog,
  packaging,
  parse,
  prompt-toolkit,
  psutil,
  requests,
  resolvelib,
  ruamel-yaml,
  typing-extensions,
  pathspec,
  pytestCheckHook,
  versionCheckHook,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "mcdreforged";
  version = "2.14.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "MCDReforged";
    repo = "MCDReforged";
    tag = "v${version}";
    hash = "sha256-R9zM86ohABEaxj7NYj8FCPIYsMDJp0sKjOhWzit69B8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    colorama
    colorlog
    packaging
    parse
    prompt-toolkit
    psutil
    requests
    resolvelib
    ruamel-yaml
    typing-extensions
    pathspec
  ];

  nativeCheckInputs = [
    pytestCheckHook
    versionCheckHook
  ];

  versionCheckProgramArg = [ "--version" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Rewritten version of MCDaemon, a python tool to control your Minecraft server";
    homepage = "https://mcdreforged.com";
    changelog = "https://github.com/MCDReforged/MCDReforged/releases/tag/v${version}";
    license = lib.licenses.lgpl3Only;
    maintainers = with lib.maintainers; [ moraxyc ];
    mainProgram = "mcdreforged";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7994,6 +7994,8 @@ self: super: with self; {
  mccabe = callPackage ../development/python-modules/mccabe { };
  mcdreforged = callPackage ../development/python-modules/mcdreforged { };
  mcstatus = callPackage ../development/python-modules/mcstatus { };
  mcuuid = callPackage ../development/python-modules/mcuuid { };