summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytmx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytmx/default.nix')
-rw-r--r--pkgs/development/python-modules/pytmx/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pytmx/default.nix b/pkgs/development/python-modules/pytmx/default.nix
index 17c18a96c736..6d88f4b636b1 100644
--- a/pkgs/development/python-modules/pytmx/default.nix
+++ b/pkgs/development/python-modules/pytmx/default.nix
@@ -5,20 +5,26 @@
buildPythonPackage rec {
pname = "pytmx";
- version = "3.24.0";
+ version = "3.25";
disabled = isPy27;
src = fetchFromGitHub {
- # The release was not git tagged.
owner = "bitcraft";
repo = "PyTMX";
- rev = "eb96efea30d57b731654b2a167d86b8b553b147d";
- sha256 = "1g1j4w75zw76p5f8m5v0hdigdlva2flf0ngyk8nvqcwzcl5vq5wc";
+ rev = version;
+ sha256 = "0v07zhvzvl2qcqhjzgfzm8hgayq38gaqcxxkyhlq9n0hlk93nm97";
};
propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
+ pythonImportsCheck = [
+ "pytmx.pytmx"
+ "pytmx.util_pygame"
+ "pytmx.util_pyglet"
+ "pytmx.util_pysdl2"
+ ];
+
checkPhase = ''
# Change into the test directory due to a relative resource path.
cd tests/pytmx
@@ -28,7 +34,7 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://github.com/bitcraft/PyTMX";
description = "Python library to read Tiled Map Editor's TMX maps";
- license = licenses.lgpl3;
+ license = licenses.lgpl3Plus;
maintainers = with maintainers; [ oxzi ];
};
}