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