Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 33 lines 948 B view raw
1{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }: 2 3buildPythonPackage rec { 4 pname = "pytmx"; 5 version = "3.21.7"; 6 7 src = fetchFromGitHub { 8 # The release was not git tagged. 9 owner = "bitcraft"; 10 repo = "PyTMX"; 11 rev = "38519b94ab9a2db7cacb8e18de4d83750ec6fac2"; 12 sha256 = "0p2gc6lgian1yk4qvhbkxfkmndf9ras70amigqzzwr02y2jvq7j8"; 13 }; 14 15 propagatedBuildInputs = [ pygame pyglet pysdl2 six ]; 16 17 # The tests are failing for Python 2.7. 18 doCheck = isPy3k; 19 checkPhase = '' 20 # The following test imports an example file from the current working 21 # directory. Thus, we're cd'ing into the test directory. 22 23 cd tests/ 24 python -m unittest test_pytmx 25 ''; 26 27 meta = with lib; { 28 homepage = "https://github.com/bitcraft/PyTMX"; 29 description = "Python library to read Tiled Map Editor's TMX maps"; 30 license = licenses.lgpl3; 31 maintainers = with maintainers; [ geistesk ]; 32 }; 33}