61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
# build inputs
|
|
, appdirs
|
|
, click
|
|
, diskcache
|
|
, jinja2
|
|
, jsonschema
|
|
, pyyaml
|
|
, yamllint
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glean_parser";
|
|
version = "5.0.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-MJ827VXy8e2CRyq4sY4d0B7etxBgRk4/hZybYOOLh9Q=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "pytest-runner" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
click
|
|
diskcache
|
|
jinja2
|
|
jsonschema
|
|
pyyaml
|
|
yamllint
|
|
];
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
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 ];
|
|
};
|
|
}
|