2019-10-16 21:20:44 +01:00
|
|
|
{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytmx";
|
2020-07-19 13:13:24 +01:00
|
|
|
version = "3.22.0";
|
2019-10-16 21:20:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
# The release was not git tagged.
|
|
|
|
owner = "bitcraft";
|
|
|
|
repo = "PyTMX";
|
2020-07-19 13:13:24 +01:00
|
|
|
rev = "187fd429dadcdc5828e78e6748a983aa1434e4d2";
|
|
|
|
sha256 = "0480pr61v54bwdyzb983sk0fqkyfbcgrdn8k11yf1yck4zb119gc";
|
2019-10-16 21:20:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-07-19 13:13:24 +01:00
|
|
|
python -m unittest tests.pytmx.test_pytmx
|
2019-10-16 21:20:44 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/bitcraft/PyTMX";
|
|
|
|
description = "Python library to read Tiled Map Editor's TMX maps";
|
|
|
|
license = licenses.lgpl3;
|
2020-08-15 14:25:59 +01:00
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2019-10-16 21:20:44 +01:00
|
|
|
};
|
|
|
|
}
|