nixpkgs/pkgs/development/python-modules/pytmx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
976 B
Nix
Raw Normal View History

2021-11-10 22:03:09 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pygame
, pyglet
, pysdl2
, pytestCheckHook
, pythonOlder
}:
2019-10-16 20:20:44 +00:00
buildPythonPackage rec {
pname = "pytmx";
2021-12-12 13:22:05 +00:00
version = "3.31";
2021-11-10 22:03:09 +00:00
format = "setuptools";
2021-11-10 22:03:09 +00:00
disabled = pythonOlder "3.7";
2019-10-16 20:20:44 +00:00
src = fetchFromGitHub {
owner = "bitcraft";
repo = "PyTMX";
2021-12-12 13:22:05 +00:00
rev = "v${version}";
sha256 = "05v8zv06fymvgv332g48kcing4k4ncy2iwgpy1qmxrpin1avyynx";
2019-10-16 20:20:44 +00:00
};
2021-11-10 22:03:09 +00:00
propagatedBuildInputs = [
pygame
pyglet
pysdl2
];
2019-10-16 20:20:44 +00:00
pythonImportsCheck = [
"pytmx.pytmx"
"pytmx.util_pygame"
"pytmx.util_pyglet"
"pytmx.util_pysdl2"
];
2021-11-10 22:03:09 +00:00
checkInputs = [
pytestCheckHook
];
disabledTests = [
# AssertionError on the property name
"test_contains_reserved_property_name"
];
2019-10-16 20:20:44 +00:00
meta = with lib; {
homepage = "https://github.com/bitcraft/PyTMX";
description = "Python library to read Tiled Map Editor's TMX maps";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ oxzi ];
2019-10-16 20:20:44 +00:00
};
}