summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/xsdata-pydantic/default.nix
blob: 9a1c3774c193d6bc1937dbd23ebb7174633a9597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  xsdata,
  pydantic,
  click,
  click-default-group,
  jinja2,
  docformatter,
  toposort,
}:

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
  ];

  nativeCheckInputs = [
    click
    click-default-group
    docformatter
    jinja2
    toposort
    pytestCheckHook
  ];

  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;
  };
}