Merge pull request #247983 from tjni/xsdata

python3.pkgs.xsdata: 22.12 -> 23.7
This commit is contained in:
Robert Schütz 2023-08-16 16:38:22 +00:00 committed by GitHub
commit c72815391d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,45 +2,45 @@
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, click
, click-default-group
, docformatter
, jinja2
, toposort
, typing-extensions
, lxml
, requests
, pytestCheckHook
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "xsdata";
version = "22.12";
version = "23.7";
format = "pyproject";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-o9Xxt7b/+MkW94Jcg26ihaTn0/OpTcu+0OY7oV3JRGY=";
hash = "sha256-jXnpB42P9PjEgw7NoSCGE6S14oOkHkzTBFYb9vypaqw=";
};
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 \
substituteInPlace pyproject.toml \
--replace "--benchmark-skip" ""
'';
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
typing-extensions
];
passthru.optional-dependencies = {
cli = [
click