3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pytmx: 3.27 -> 3.30

This commit is contained in:
Fabian Affolter 2021-11-10 23:03:09 +01:00
parent 4420685e85
commit d65e1b5927

View file

@ -1,23 +1,32 @@
{ lib, fetchFromGitHub { lib
, python, buildPythonPackage, isPy27 , buildPythonPackage
, pygame, pyglet, pysdl2, six , fetchFromGitHub
, pygame
, pyglet
, pysdl2
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytmx"; pname = "pytmx";
version = "3.27"; version = "3.30";
format = "setuptools";
disabled = isPy27; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bitcraft"; owner = "bitcraft";
repo = "PyTMX"; repo = "PyTMX";
# Release was not tagged. rev = version;
rev = "5bb094c45e648d1de6c9ba8d8c8f31f7b83478e1"; sha256 = "sha256-d6VPmRdqUO6YhkOYYeXOEcrli/35IFkxK73AcZYHixw=";
sha256 = "0kpd39sr2ggwzh7nd3f5801mgwm57rzrrkqcgbcypdm8l2ayga3b";
}; };
propagatedBuildInputs = [ pygame pyglet pysdl2 six ]; propagatedBuildInputs = [
pygame
pyglet
pysdl2
];
pythonImportsCheck = [ pythonImportsCheck = [
"pytmx.pytmx" "pytmx.pytmx"
@ -26,11 +35,14 @@ buildPythonPackage rec {
"pytmx.util_pysdl2" "pytmx.util_pysdl2"
]; ];
checkPhase = '' checkInputs = [
# Change into the test directory due to a relative resource path. pytestCheckHook
cd tests/pytmx ];
${python.interpreter} -m unittest test_pytmx
''; disabledTests = [
# AssertionError on the property name
"test_contains_reserved_property_name"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/bitcraft/PyTMX"; homepage = "https://github.com/bitcraft/PyTMX";