1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pygame 5, pyglet 6, pysdl2 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pytmx"; 13 version = "3.31"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "bitcraft"; 20 repo = "PyTMX"; 21 rev = "v${version}"; 22 sha256 = "05v8zv06fymvgv332g48kcing4k4ncy2iwgpy1qmxrpin1avyynx"; 23 }; 24 25 propagatedBuildInputs = [ 26 pygame 27 pyglet 28 pysdl2 29 ]; 30 31 pythonImportsCheck = [ 32 "pytmx.pytmx" 33 "pytmx.util_pygame" 34 "pytmx.util_pyglet" 35 "pytmx.util_pysdl2" 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 disabledTests = [ 43 # AssertionError on the property name 44 "test_contains_reserved_property_name" 45 ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/bitcraft/PyTMX"; 49 description = "Python library to read Tiled Map Editor's TMX maps"; 50 license = licenses.lgpl3Plus; 51 maintainers = with maintainers; [ oxzi ]; 52 }; 53}