1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pillow,
7 pytestCheckHook,
8 pythonOlder,
9 skytemple-files,
10}:
11
12buildPythonPackage rec {
13 pname = "skytemple-dtef";
14 version = "1.8.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "SkyTemple";
21 repo = "skytemple-dtef";
22 rev = version;
23 hash = "sha256-IsAHXl9HfjWDXi/n6Alndi+GnAr7pmbjz6wrBECra0Q=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pillow
30 skytemple-files
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "skytemple_dtef" ];
36
37 meta = with lib; {
38 description = "Format for standardized rule-based tilesets with 256 adjacency combinations";
39 homepage = "https://github.com/SkyTemple/skytemple-dtef";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ marius851000 ];
42 };
43}