blob: 3ec7ade6a90b42d24906f13e380df14ffda70858 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, numpy
}:
buildPythonPackage rec {
pname = "nbtlib";
version = "2.0.4";
format = "pyproject";
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 = with lib; {
description = "A 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 = licenses.mit;
maintainers = with maintainers; [ gdd ];
};
}
|