This commit is contained in:
2025-10-28 11:08:30 +01:00
commit d4ae65bb30
6 changed files with 176 additions and 0 deletions

40
xsdata-pydantic.nix Normal file
View File

@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
xsdata,
pydantic,
}:
buildPythonPackage rec {
pname = "xsdata-pydantic";
version = "24.5";
pyproject = true;
src = fetchFromGitHub {
owner = "tefra";
repo = "xsdata-pydantic";
tag = "v${version}";
hash = "sha256-ExgAXQRNfGQRSZdMuWc8ldJPqz+3c4Imgu75KXLXHNk=";
};
build-system = [ setuptools ];
dependencies = [
xsdata
pydantic
];
pythonImportsCheck = [
"xsdata_pydantic"
];
meta = {
description = "Naive XML & JSON Bindings for python pydantic classes!";
homepage = "https://github.com/tefra/xsdata-pydantic";
maintainers = with lib.maintainers; [ berrij ];
license = lib.licenses.mit;
platforms = lib.platforms.all;
};
}