git.iko.soy/typeable/nixpkgs
on master help sign in
pytmx: init at 3.21.7
commitab42edccc2d5f3f677a56e70e2a751d5034587b7 authorgeistesk <github.jyf300hj@0x21.biz> dateWed 16 Oct 2019, 22:20 (7 years ago) parente6167ce
2 files changed+35
pkgs/development/python-modules/pytmx/default.nix+33 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pytmx/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }:
2+
3+buildPythonPackage rec {
4+ pname = "pytmx";
5+ version = "3.21.7";
6+
7+ src = fetchFromGitHub {
8+ # The release was not git tagged.
9+ owner = "bitcraft";
10+ repo = "PyTMX";
11+ rev = "38519b94ab9a2db7cacb8e18de4d83750ec6fac2";
12+ sha256 = "0p2gc6lgian1yk4qvhbkxfkmndf9ras70amigqzzwr02y2jvq7j8";
13+ };
14+
15+ propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
16+
17+ # The tests are failing for Python 2.7.
18+ doCheck = isPy3k;
19+ checkPhase = ''
20+ # The following test imports an example file from the current working
21+ # directory. Thus, we're cd'ing into the test directory.
22+
23+ cd tests/
24+ python -m unittest test_pytmx
25+ '';
26+
27+ meta = with lib; {
28+ homepage = "https://github.com/bitcraft/PyTMX";
29+ description = "Python library to read Tiled Map Editor's TMX maps";
30+ license = licenses.lgpl3;
31+ maintainers = with maintainers; [ geistesk ];
32+ };
33+}
pkgs/top-level/python-packages.nix+2
@@ -1090,6 +1090,8 @@ in {
10901090
10911091 pytest-xprocess = callPackage ../development/python-modules/pytest-xprocess { };
10921092
1093+ pytmx = callPackage ../development/python-modules/pytmx { };
1094+
10931095 python-binance = callPackage ../development/python-modules/python-binance { };
10941096
10951097 python-dbusmock = callPackage ../development/python-modules/python-dbusmock { };