nixpkgs/pkgs/by-name/mc/mcdreforged/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-17 10:08:28 +00:00
{
lib,
fetchFromGitHub,
python3,
testers,
mcdreforged,
}:
python3.pkgs.buildPythonApplication rec {
pname = "mcdreforged";
2024-09-27 10:36:02 +00:00
version = "2.13.2";
2024-06-10 00:13:39 +00:00
pyproject = true;
2024-05-17 10:08:28 +00:00
src = fetchFromGitHub {
2024-07-06 09:24:28 +00:00
owner = "MCDReforged";
2024-05-17 10:08:28 +00:00
repo = "MCDReforged";
rev = "refs/tags/v${version}";
2024-09-27 10:36:02 +00:00
hash = "sha256-4podJ3InBnNc+t4BpCQrg2QbJ9ZJr5fmroXyzo7JrZw=";
2024-05-17 10:08:28 +00:00
};
build-system = [ python3.pkgs.setuptools ];
dependencies = with python3.pkgs; [
colorama
2024-07-06 09:24:28 +00:00
colorlog
2024-05-17 10:08:28 +00:00
packaging
parse
prompt-toolkit
psutil
2024-07-06 09:24:28 +00:00
requests
resolvelib
2024-05-17 10:08:28 +00:00
ruamel-yaml
typing-extensions
];
nativeCheckInputs = [ python3.pkgs.pytestCheckHook ];
passthru.tests = {
version = testers.testVersion { package = mcdreforged; };
};
2024-07-06 09:24:28 +00:00
meta = {
description = "Rewritten version of MCDaemon, a python tool to control your Minecraft server";
2024-05-17 10:08:28 +00:00
homepage = "https://mcdreforged.com";
changelog = "https://github.com/MCDReforged/MCDReforged/releases/tag/v${version}";
2024-07-06 09:24:28 +00:00
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ moraxyc ];
2024-05-17 10:08:28 +00:00
mainProgram = "mcdreforged";
};
}