Skip to content

Commit

Permalink
amulet-map-editor: init at 0.10.37
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev committed Dec 10, 2024
1 parent 5bab530 commit 1f6cebd
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions pkgs/by-name/am/amulet-map-editor/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
lib,
python3,
fetchFromGitHub,
nix-update-script,
wrapGAppsHook3,
gtk3,
}:
let
version = "0.10.37";

src = fetchFromGitHub {
owner = "Amulet-Team";
repo = "Amulet-Map-Editor";
rev = "refs/tags/${version}";
hash = "sha256-2ZckXZABpZQtSsOXXSZRA+zePftCeuC49CFOCPdSuzY=";
};
in
python3.pkgs.buildPythonApplication {
pname = "amulet-map-editor";
inherit version src;
pyproject = true;

nativeBuildInputs = [ wrapGAppsHook3 ];

build-system = with python3.pkgs; [
setuptools
wheel
cython
versioneer
numpy
];

buildInputs = [ gtk3 ];

dependencies = with python3.pkgs; [
pillow
wxpython
numpy
pyopengl
packaging
amulet-core
amulet-nbt
pymctranslate
minecraft-resource-pack
platformdirs
];

optional-dependencies = with python3.pkgs; {
dev = [
black
pre-commit
];
docs = [
sphinx
sphinx-autodoc-typehints
sphinx-rtd-theme
];
};

pythonRelaxDeps = [ "platformdirs" ];

pythonImportsCheck = [ "amulet_map_editor" ];

nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

dontWrapGApps = true;

makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];

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

meta = {
description = "Minecraft world editor and converter that supports all versions since Java 1.12 and Bedrock 1.7";
homepage = "https://github.com/Amulet-Team/Amulet-Map-Editor";
changelog = "https://github.com/Amulet-Team/Amulet-Map-Editor/releases/tag/${src.rev}";
license = with lib.licenses; [ amulet ];
maintainers = with lib.maintainers; [ pluiedev ];
};
}

0 comments on commit 1f6cebd

Please sign in to comment.