Files
nixpkgs/pkgs/development/python-modules/litemapy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
892 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
nbtlib,
typing-extensions,
}:
buildPythonPackage rec {
pname = "litemapy";
version = "0.11.0b0";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "SmylerMC";
repo = "litemapy";
rev = "v${version}";
hash = "sha256-jqJYiggAs/JA+CJ35HzpsIQA/5p8PRFkbmPlwJvTI28=";
};
propagatedBuildInputs = [
nbtlib
typing-extensions
];
pythonImportsCheck = [ "litemapy" ];
meta = {
description = "Python library to read and edit Litematica's schematic file format";
homepage = "https://github.com/SmylerMC/litemapy";
changelog = "https://github.com/SmylerMC/litemapy/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
gdd
kuflierl
];
};
}