python3Packages.dicttoxml2: migrate to pyproject, finalAttrs, enable tests (#543655)

This commit is contained in:
Fabian Affolter
2026-07-20 07:10:21 +00:00
committed by GitHub
@@ -2,27 +2,30 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "dicttoxml2";
version = "2.1.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-Z8tynzN911KAjAIbcMjfijT4S54RGl26o34ADur01GI=";
};
# Module has no tests
doCheck = false;
build-system = [ setuptools ];
pythonImportsCheck = [ "dicttoxml2" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Converts a Python dictionary or other native data type into a valid XML string";
homepage = "https://pypi.org/project/dicttoxml2/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}
})