2021-11-17 17:29:43 +00:00
|
|
|
{ lib
|
2021-11-19 15:25:21 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-11-17 17:29:43 +00:00
|
|
|
, setuptools-scm
|
2021-11-19 15:25:21 +00:00
|
|
|
# build inputs
|
|
|
|
, appdirs
|
|
|
|
, click
|
|
|
|
, diskcache
|
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
|
|
|
, pyyaml
|
|
|
|
, yamllint
|
2021-11-17 17:29:43 +00:00
|
|
|
}:
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
buildPythonPackage rec {
|
2021-11-17 17:29:43 +00:00
|
|
|
pname = "glean_parser";
|
2022-03-10 18:54:07 +00:00
|
|
|
version = "5.1.0";
|
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 {
|
2021-11-17 17:29:43 +00:00
|
|
|
inherit pname version;
|
2022-03-10 18:54:07 +00:00
|
|
|
sha256 = "sha256-8oMbaGsW5Lkw9OluNsXXe2IBNbjeoIb9vDjVOt+uHR0=";
|
2021-11-17 17:29:43 +00:00
|
|
|
};
|
|
|
|
|
2021-11-29 13:32:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "pytest-runner" ""
|
|
|
|
'';
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-11-17 17:29:43 +00:00
|
|
|
appdirs
|
|
|
|
click
|
|
|
|
diskcache
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
yamllint
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-11-19 15:25:21 +00:00
|
|
|
pytestCheckHook
|
2021-11-17 17:29:43 +00:00
|
|
|
];
|
|
|
|
disabledTests = [
|
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1741668
|
|
|
|
"test_validate_ping"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "glean_parser" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.kvark ];
|
|
|
|
};
|
|
|
|
}
|