Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 27 lines 744 B view raw
1{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }: 2 3buildPythonPackage rec { 4 pname = "pytmx"; 5 version = "3.22.0"; 6 7 src = fetchFromGitHub { 8 # The release was not git tagged. 9 owner = "bitcraft"; 10 repo = "PyTMX"; 11 rev = "187fd429dadcdc5828e78e6748a983aa1434e4d2"; 12 sha256 = "0480pr61v54bwdyzb983sk0fqkyfbcgrdn8k11yf1yck4zb119gc"; 13 }; 14 15 propagatedBuildInputs = [ pygame pyglet pysdl2 six ]; 16 17 checkPhase = '' 18 python -m unittest tests.pytmx.test_pytmx 19 ''; 20 21 meta = with lib; { 22 homepage = "https://github.com/bitcraft/PyTMX"; 23 description = "Python library to read Tiled Map Editor's TMX maps"; 24 license = licenses.lgpl3; 25 maintainers = with maintainers; [ oxzi ]; 26 }; 27}