02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
80 lines
1.6 KiB
Nix
80 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, click
|
|
, click-default-group
|
|
, docformatter
|
|
, jinja2
|
|
, toposort
|
|
, lxml
|
|
, requests
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xsdata";
|
|
version = "22.7";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-2EpbTNYdjcHOQQqe+bEpMzGxD2Jh34P+eI+uK4SJPdo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "--benchmark-skip" ""
|
|
'';
|
|
|
|
passthru.optional-dependencies = {
|
|
cli = [
|
|
click
|
|
click-default-group
|
|
docformatter
|
|
jinja2
|
|
toposort
|
|
];
|
|
lxml = [
|
|
lxml
|
|
];
|
|
soap = [
|
|
requests
|
|
];
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
] ++ passthru.optional-dependencies.cli
|
|
++ passthru.optional-dependencies.lxml
|
|
++ passthru.optional-dependencies.soap;
|
|
|
|
disabledTestPaths = [
|
|
"tests/integration/benchmarks"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"xsdata.formats.dataclass.context"
|
|
"xsdata.formats.dataclass.models.elements"
|
|
"xsdata.formats.dataclass.models.generics"
|
|
"xsdata.formats.dataclass.parsers"
|
|
"xsdata.formats.dataclass.parsers.handlers"
|
|
"xsdata.formats.dataclass.parsers.nodes"
|
|
"xsdata.formats.dataclass.serializers"
|
|
"xsdata.formats.dataclass.serializers.config"
|
|
"xsdata.formats.dataclass.serializers.mixins"
|
|
"xsdata.formats.dataclass.serializers.writers"
|
|
"xsdata.models.config"
|
|
"xsdata.utils.text"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python XML Binding";
|
|
homepage = "https://github.com/tefra/xsdata";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|