2021-11-17 12:29:43 -05:00
|
|
|
{
|
|
|
|
lib,
|
2022-03-26 17:56:26 +01:00
|
|
|
buildPythonPackage,
|
2021-11-19 10:25:21 -05:00
|
|
|
click,
|
|
|
|
diskcache,
|
2022-03-26 17:56:26 +01:00
|
|
|
fetchPypi,
|
2021-11-19 10:25:21 -05:00
|
|
|
jinja2,
|
|
|
|
jsonschema,
|
2025-01-19 21:15:34 +01:00
|
|
|
platformdirs,
|
2022-03-26 17:56:26 +01:00
|
|
|
pytestCheckHook,
|
2021-11-19 10:25:21 -05:00
|
|
|
pyyaml,
|
2024-05-04 18:09:01 +02:00
|
|
|
setuptools,
|
2022-03-26 17:56:26 +01:00
|
|
|
setuptools-scm,
|
2021-11-17 12:29:43 -05:00
|
|
|
}:
|
|
|
|
|
2021-11-19 10:25:21 -05:00
|
|
|
buildPythonPackage rec {
|
2022-03-26 17:56:26 +01:00
|
|
|
pname = "glean-parser";
|
2025-04-01 02:59:24 +02:00
|
|
|
version = "17.1.0";
|
2024-07-28 17:13:58 -04:00
|
|
|
pyproject = true;
|
2021-11-17 12:29:43 -05:00
|
|
|
|
2021-11-19 10:25:21 -05:00
|
|
|
src = fetchPypi {
|
2022-03-26 17:56:26 +01:00
|
|
|
pname = "glean_parser";
|
|
|
|
inherit version;
|
2025-04-01 02:59:24 +02:00
|
|
|
hash = "sha256-pZq2bdc0qL6n16LLYyJ2YC3YmUEe4cHLifQ5qDO6FZg=";
|
2021-11-17 12:29:43 -05:00
|
|
|
};
|
|
|
|
|
2022-04-14 04:48:47 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-07-28 17:13:58 -04:00
|
|
|
--replace-fail "pytest-runner" ""
|
2022-04-14 04:48:47 +02:00
|
|
|
'';
|
|
|
|
|
2024-07-28 17:13:58 -04:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-11-29 08:32:07 -05:00
|
|
|
|
2024-07-28 17:13:58 -04:00
|
|
|
dependencies = [
|
2021-11-17 12:29:43 -05:00
|
|
|
click
|
|
|
|
diskcache
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
2025-01-19 21:15:34 +01:00
|
|
|
platformdirs
|
2021-11-17 12:29:43 -05:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-03-26 17:56:26 +01:00
|
|
|
|
2022-07-16 12:59:08 +02:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-11-17 12:29:43 -05:00
|
|
|
disabledTests = [
|
2022-07-16 12:59:08 +02:00
|
|
|
# Network access
|
2021-11-17 12:29:43 -05:00
|
|
|
"test_validate_ping"
|
2024-03-17 16:21:10 +01:00
|
|
|
"test_logging"
|
2022-07-16 12:59:08 +02:00
|
|
|
# Fails since yamllint 1.27.x
|
|
|
|
"test_yaml_lint"
|
2021-11-17 12:29:43 -05:00
|
|
|
];
|
|
|
|
|
2022-03-26 17:56:26 +01:00
|
|
|
pythonImportsCheck = [ "glean_parser" ];
|
2021-11-17 12:29:43 -05:00
|
|
|
|
2024-07-28 17:13:58 -04:00
|
|
|
meta = {
|
2021-11-17 12:29:43 -05:00
|
|
|
description = "Tools for parsing the metadata for Mozilla's glean telemetry SDK";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "glean_parser";
|
2021-11-17 12:29:43 -05:00
|
|
|
homepage = "https://github.com/mozilla/glean_parser";
|
2023-03-15 09:36:29 +01:00
|
|
|
changelog = "https://github.com/mozilla/glean_parser/blob/v${version}/CHANGELOG.md";
|
2024-07-28 17:13:58 -04:00
|
|
|
license = lib.licenses.mpl20;
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2021-11-17 12:29:43 -05:00
|
|
|
};
|
|
|
|
}
|