Something went wrong. Try again.
lol
Something went wrong. Try again.
931 B · 41 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, numpy,}:
buildPythonPackage rec { pname = "nbtlib"; version = "2.0.4"; pyproject = true;
src = fetchFromGitHub { owner = "vberlier"; repo = "nbtlib"; rev = "v${version}"; hash = "sha256-L8eX6/0qiQ4UxbmDicLedzj+oBjYmlK96NpljE/A3eI="; };
prePatch = '' substituteInPlace pyproject.toml \ --replace "poetry>=0.12" "poetry-core" \ --replace "poetry.masonry" "poetry.core.masonry" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ numpy ];
pythonImportsCheck = [ "nbtlib" ];
meta = { description = "Python library to read and edit nbt data"; mainProgram = "nbt"; homepage = "https://github.com/vberlier/nbtlib"; changelog = "https://github.com/vberlier/nbtlib/blob/${src.rev}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ gdd ]; };}