1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pillow
5, pytestCheckHook
6, pythonOlder
7, skytemple-files
8}:
9
10buildPythonPackage rec {
11 pname = "skytemple-dtef";
12 version = "1.1.5";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "SkyTemple";
19 repo = pname;
20 rev = version;
21 hash = "sha256-QL+nLmjz0wCED2RjidIDK0tB6mAPnoaSJWpyLFu0pP4=";
22 };
23
24 propagatedBuildInputs = [
25 pillow
26 skytemple-files
27 ];
28
29 checkInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "skytemple_dtef"
35 ];
36
37 meta = with lib; {
38 description = "A 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 xfix ];
42 };
43}