depot/pkgs/by-name/mc/mcdreforged/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

50 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
testers,
mcdreforged,
}:
python3.pkgs.buildPythonApplication rec {
pname = "mcdreforged";
version = "2.13.2";
pyproject = true;
src = fetchFromGitHub {
owner = "MCDReforged";
repo = "MCDReforged";
rev = "refs/tags/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";
};
}