Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 918 B view raw
1{ lib, fetchFromGitHub 2, python, buildPythonPackage, isPy27 3, pygame, pyglet, pysdl2, six 4}: 5 6buildPythonPackage rec { 7 pname = "pytmx"; 8 version = "3.25"; 9 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "bitcraft"; 14 repo = "PyTMX"; 15 rev = version; 16 sha256 = "0v07zhvzvl2qcqhjzgfzm8hgayq38gaqcxxkyhlq9n0hlk93nm97"; 17 }; 18 19 propagatedBuildInputs = [ pygame pyglet pysdl2 six ]; 20 21 pythonImportsCheck = [ 22 "pytmx.pytmx" 23 "pytmx.util_pygame" 24 "pytmx.util_pyglet" 25 "pytmx.util_pysdl2" 26 ]; 27 28 checkPhase = '' 29 # Change into the test directory due to a relative resource path. 30 cd tests/pytmx 31 ${python.interpreter} -m unittest test_pytmx 32 ''; 33 34 meta = with lib; { 35 homepage = "https://github.com/bitcraft/PyTMX"; 36 description = "Python library to read Tiled Map Editor's TMX maps"; 37 license = licenses.lgpl3Plus; 38 maintainers = with maintainers; [ oxzi ]; 39 }; 40}