1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nbtlib
5}:
6
7buildPythonPackage rec {
8 pname = "litemapy";
9 version = "0.7.2b0";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "SmylerMC";
14 repo = "litemapy";
15 rev = "v${version}";
16 hash = "sha256-VfEo/JLeU17bEkvc8oZYfq19RsHl6QvKv0sGZYQjYhE=";
17 };
18
19 propagatedBuildInputs = [
20 nbtlib
21 ];
22
23 pythonImportsCheck = [ "litemapy" ];
24
25 meta = with lib; {
26 description = "A Python library to read and edit Litematica's schematic file format";
27 homepage = "https://github.com/SmylerMC/litemapy";
28 changelog = "https://github.com/SmylerMC/litemapy/blob/${src.rev}/CHANGELOG.md";
29 license = licenses.gpl3Only;
30 maintainers = with maintainers; [ gdd ];
31 };
32}