From 25f248766048d2e6378bd093923493ac5eee1ca6 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sat, 4 Jun 2022 08:39:03 +0200 Subject: [PATCH 1/2] python3Packages.skytemple-dtef: 1.1.4 -> 1.1.5 --- pkgs/development/python-modules/skytemple-dtef/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/skytemple-dtef/default.nix b/pkgs/development/python-modules/skytemple-dtef/default.nix index 24812deb1f9e..3f4bb0d6006e 100644 --- a/pkgs/development/python-modules/skytemple-dtef/default.nix +++ b/pkgs/development/python-modules/skytemple-dtef/default.nix @@ -2,13 +2,13 @@ buildPythonPackage rec { pname = "skytemple-dtef"; - version = "1.1.4"; + version = "1.1.5"; src = fetchFromGitHub { owner = "SkyTemple"; repo = pname; rev = version; - sha256 = "0l2b66z5ngyas3ijbzwz2wizw46kz47f8jr729pzbg4wbqbqjihr"; + sha256 = "QL+nLmjz0wCED2RjidIDK0tB6mAPnoaSJWpyLFu0pP4="; }; propagatedBuildInputs = [ skytemple-files ]; @@ -20,6 +20,6 @@ buildPythonPackage rec { homepage = "https://github.com/SkyTemple/skytemple-dtef"; description = "A format for standardized rule-based tilesets with 256 adjacency combinations"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ xfix ]; + maintainers = with maintainers; [ xfix marius851000 ]; }; } From 9b5dc169b3b721c21a5c75bf2babf7731da60f71 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 4 Jun 2022 10:31:09 +0200 Subject: [PATCH 2/2] python310Packages.skytemple-dtef: enable tests - disable on older Python releases - adjust inputs --- .../python-modules/skytemple-dtef/default.nix | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/skytemple-dtef/default.nix b/pkgs/development/python-modules/skytemple-dtef/default.nix index 3f4bb0d6006e..9a050e9c2b5a 100644 --- a/pkgs/development/python-modules/skytemple-dtef/default.nix +++ b/pkgs/development/python-modules/skytemple-dtef/default.nix @@ -1,25 +1,43 @@ -{ lib, buildPythonPackage, fetchFromGitHub, skytemple-files }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pillow +, pytestCheckHook +, pythonOlder +, skytemple-files +}: buildPythonPackage rec { pname = "skytemple-dtef"; version = "1.1.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "SkyTemple"; repo = pname; rev = version; - sha256 = "QL+nLmjz0wCED2RjidIDK0tB6mAPnoaSJWpyLFu0pP4="; + hash = "sha256-QL+nLmjz0wCED2RjidIDK0tB6mAPnoaSJWpyLFu0pP4="; }; - propagatedBuildInputs = [ skytemple-files ]; + propagatedBuildInputs = [ + pillow + skytemple-files + ]; - doCheck = false; # there are no tests - pythonImportsCheck = [ "skytemple_dtef" ]; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "skytemple_dtef" + ]; meta = with lib; { - homepage = "https://github.com/SkyTemple/skytemple-dtef"; description = "A format for standardized rule-based tilesets with 256 adjacency combinations"; + homepage = "https://github.com/SkyTemple/skytemple-dtef"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ xfix marius851000 ]; + maintainers = with maintainers; [ marius851000 xfix ]; }; }