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 Nov 14, 2024
1 parent 544ee52 commit 0675b24
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 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,68 @@
{
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
pyopengl
amulet-core
amulet-nbt
pymctranslate
minecraft-resource-pack
platformdirs
];

pythonRelaxDeps = [ "platformdirs" ];

pythonImportsCheck = [ "amulet_map_editor" ];

nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

dontWrapGApps = true;

preFixup = ''
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 0675b24

Please sign in to comment.