2021-11-17 17:29:43 +00:00
|
|
|
{ lib
|
2021-11-19 15:25:21 +00:00
|
|
|
, appdirs
|
2022-03-26 16:56:26 +00:00
|
|
|
, buildPythonPackage
|
2021-11-19 15:25:21 +00:00
|
|
|
, click
|
|
|
|
, diskcache
|
2022-03-26 16:56:26 +00:00
|
|
|
, fetchPypi
|
2021-11-19 15:25:21 +00:00
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
2022-03-26 16:56:26 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-11-19 15:25:21 +00:00
|
|
|
, pyyaml
|
2022-03-26 16:56:26 +00:00
|
|
|
, setuptools-scm
|
2021-11-19 15:25:21 +00:00
|
|
|
, yamllint
|
2021-11-17 17:29:43 +00:00
|
|
|
}:
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
buildPythonPackage rec {
|
2022-03-26 16:56:26 +00:00
|
|
|
pname = "glean-parser";
|
2022-12-30 19:13:12 +00:00
|
|
|
version = "6.4.0";
|
2022-03-26 16:56:26 +00:00
|
|
|
format = "setuptools";
|
2021-11-17 17:29:43 +00:00
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-11-17 17:29:43 +00:00
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
src = fetchPypi {
|
2022-03-26 16:56:26 +00:00
|
|
|
pname = "glean_parser";
|
|
|
|
inherit version;
|
2022-12-30 19:13:12 +00:00
|
|
|
hash = "sha256-9+U9kRMkcQY0tjao6Pmi0STqh0xw0pFU0/xZXlawkKM=";
|
2021-11-17 17:29:43 +00:00
|
|
|
};
|
|
|
|
|
2022-04-14 02:48:47 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest-runner" "" \
|
2022-07-16 10:59:08 +00:00
|
|
|
--replace "MarkupSafe>=1.1.1,<=2.0.1" "MarkupSafe>=1.1.1"
|
2022-04-14 02:48:47 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-26 16:56:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-11-29 13:32:07 +00:00
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-11-17 17:29:43 +00:00
|
|
|
appdirs
|
|
|
|
click
|
|
|
|
diskcache
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
yamllint
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-11-19 15:25:21 +00:00
|
|
|
pytestCheckHook
|
2021-11-17 17:29:43 +00:00
|
|
|
];
|
2022-03-26 16:56:26 +00:00
|
|
|
|
2022-07-16 10:59:08 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-11-17 17:29:43 +00:00
|
|
|
disabledTests = [
|
2022-07-16 10:59:08 +00:00
|
|
|
# Network access
|
2021-11-17 17:29:43 +00:00
|
|
|
"test_validate_ping"
|
2022-07-16 10:59:08 +00:00
|
|
|
# Fails since yamllint 1.27.x
|
|
|
|
"test_yaml_lint"
|
2021-11-17 17:29:43 +00:00
|
|
|
];
|
|
|
|
|
2022-03-26 16:56:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"glean_parser"
|
|
|
|
];
|
2021-11-17 17:29:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for parsing the metadata for Mozilla's glean telemetry SDK";
|
|
|
|
homepage = "https://github.com/mozilla/glean_parser";
|
|
|
|
license = licenses.mpl20;
|
2022-06-06 04:40:05 +00:00
|
|
|
maintainers = with maintainers; [];
|
2021-11-17 17:29:43 +00:00
|
|
|
};
|
|
|
|
}
|