blob: 566122d57abe36e94a60f1528a2bae842b57bda7 (
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "fastjsonschema";
version = "2.21.1";
pyproject = true;
src = fetchFromGitHub {
owner = "horejsek";
repo = "python-fastjsonschema";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-H/jmvm5U4RB9KuD5EgCedbc499Fl8L2S9Y5SXy51JP0=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"benchmark"
# these tests require network access
"remote ref"
"definitions"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"test_compile_to_code_custom_format" # cannot import temporary module created during test
];
disabledTestPaths = [
# fastjsonschema.exceptions.JsonSchemaDefinitionException: Unknown format uuid/duration
"tests/json_schema/test_draft2019.py::test"
];
pythonImportsCheck = [ "fastjsonschema" ];
meta = {
description = "JSON schema validator for Python";
downloadPage = "https://github.com/horejsek/python-fastjsonschema";
homepage = "https://horejsek.github.io/python-fastjsonschema/";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}
|