python310Packages.xsdata: use docformatter 1.5.1

This commit is contained in:
Robert Schütz 2023-02-04 15:48:44 -08:00 committed by Robert Schütz
parent 5a2b689d25
commit dcf4487fc7

View file

@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, click
, click-default-group
, docformatter
@ -25,6 +26,16 @@ buildPythonPackage rec {
hash = "sha256-o9Xxt7b/+MkW94Jcg26ihaTn0/OpTcu+0OY7oV3JRGY=";
};
patches = [
# https://github.com/tefra/xsdata/pull/741
(fetchpatch {
name = "use-docformatter-1.5.1.patch";
url = "https://github.com/tefra/xsdata/commit/040692db47e6e51028fd959c793e757858c392d7.patch";
excludes = [ "setup.cfg" ];
hash = "sha256-ncecMJLJUiUb4lB8ys+nyiGU/UmayK++o89h3sAwREQ=";
})
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--benchmark-skip" ""