blob: fb91ab4ebe95b941a13a9cc6a5ca342ee74074d5 (
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
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
click,
diskcache,
fetchPypi,
hatchling,
hatch-vcs,
jinja2,
jsonschema,
platformdirs,
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "glean-parser";
version = "17.3.0";
pyproject = true;
src = fetchPypi {
pname = "glean_parser";
inherit version;
hash = "sha256-9w+0SWQ2Bo+B73hgKaGzafYa4vkyfusvpQM126We4hQ=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
click
diskcache
jinja2
jsonschema
pyyaml
platformdirs
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$TMPDIR
'';
disabledTests = [
# Network access
"test_validate_ping"
"test_logging"
# Fails since yamllint 1.27.x
"test_yaml_lint"
];
pythonImportsCheck = [ "glean_parser" ];
meta = {
description = "Tools for parsing the metadata for Mozilla's glean telemetry SDK";
mainProgram = "glean_parser";
homepage = "https://github.com/mozilla/glean_parser";
changelog = "https://github.com/mozilla/glean_parser/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = [ ];
};
}
|