about summary refs log tree commit diff
path: root/pkgs/development/python-modules/validator-collection/default.nix
blob: 60cc3c9c6f5e37831729bb9b16cf652c9686def0 (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
  alabaster,
  attrs,
  babel,
  certifi,
  cffi,
  chardet,
  codecov,
  colorama,
  coverage,
  docutils,
  filelock,
  html5lib,
  idna,
  imagesize,
  isort,
  jinja2,
  jsonschema,
  lazy-object-proxy,
  markupsafe,
  mccabe,
  more-itertools,
  packaging,
  pkginfo,
  pluggy,
  py,
  py-cpuinfo,
  pycparser,
  pyfakefs,
  pygments,
  pyparsing,
  pytest,
  pytest-benchmark,
  pytest-cov,
  pytz,
  readme-renderer,
  requests,
  requests-toolbelt,
  restview,
  six,
  snowballstemmer,
  sphinx,
  sphinx-rtd-theme,
  sphinx-tabs,
  sphinxcontrib-websupport,
  toml,
  pytestCheckHook,
  tox,
  tqdm,
  twine,
  urllib3,
  virtualenv,
  webencodings,
  wrapt,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "validator-collection";
  version = "1.5.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "insightindustry";
    repo = "validator-collection";
    rev = "refs/tags/v.${version}";
    hash = "sha256-CDPfIkZZRpl1rAzNpLKJfaBEGWUl71coic2jOHIgi6o=";
  };

  build-system = [ setuptools ];

  dependencies = [
    alabaster
    attrs
    babel
    certifi
    cffi
    chardet
    codecov
    colorama
    coverage
    docutils
    filelock
    html5lib
    idna
    imagesize
    isort
    jinja2
    jsonschema
    lazy-object-proxy
    markupsafe
    mccabe
    more-itertools
    packaging
    pkginfo
    pluggy
    py
    py-cpuinfo
    pycparser
    pyfakefs
    pygments
    pyparsing
    pytest
    pytest-benchmark
    pytest-cov
    pytz
    readme-renderer
    requests
    requests-toolbelt
    restview
    six
    snowballstemmer
    sphinx
    sphinx-rtd-theme
    sphinx-tabs
    sphinxcontrib-websupport
    toml
    tox
    tqdm
    twine
    urllib3
    virtualenv
    webencodings
    wrapt
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "validator_collection" ];

  disabledTests = [
    # Issues with fake filesystem /var/data
    "test_writeable"
    "test_executable"
    "test_readable"
    "test_is_readable"
  ];

  meta = with lib; {
    description = "Python library of 60+ commonly-used validator functions";
    homepage = "https://github.com/insightindustry/validator-collection/";
    changelog = "https://github.com/insightindustry/validator-collection/blob/${src.rev}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}