Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytmx / default.nix
blob177d255a13b5988abdc79ac74aef34e34a6104ff
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pygame
5 , pyglet
6 , pysdl2
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "pytmx";
13   version = "3.31";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "bitcraft";
20     repo = "PyTMX";
21     rev = "v${version}";
22     sha256 = "05v8zv06fymvgv332g48kcing4k4ncy2iwgpy1qmxrpin1avyynx";
23   };
25   propagatedBuildInputs = [
26     pygame
27     pyglet
28     pysdl2
29   ];
31   pythonImportsCheck = [
32     "pytmx.pytmx"
33     "pytmx.util_pygame"
34     "pytmx.util_pyglet"
35     "pytmx.util_pysdl2"
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   disabledTests = [
43     # AssertionError on the property name
44     "test_contains_reserved_property_name"
45   ];
47   meta = with lib; {
48     homepage = "https://github.com/bitcraft/PyTMX";
49     description = "Python library to read Tiled Map Editor's TMX maps";
50     license = licenses.lgpl3Plus;
51     maintainers = with maintainers; [ oxzi ];
52   };