2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pygame
|
|
|
|
, pyglet
|
|
|
|
, pysdl2
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytmx";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "3.31";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitcraft";
|
|
|
|
repo = "PyTMX";
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "05v8zv06fymvgv332g48kcing4k4ncy2iwgpy1qmxrpin1avyynx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygame
|
|
|
|
pyglet
|
|
|
|
pysdl2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytmx.pytmx"
|
|
|
|
"pytmx.util_pygame"
|
|
|
|
"pytmx.util_pyglet"
|
|
|
|
"pytmx.util_pysdl2"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError on the property name
|
|
|
|
"test_contains_reserved_property_name"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/bitcraft/PyTMX";
|
|
|
|
description = "Python library to read Tiled Map Editor's TMX maps";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|