33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
75 lines
1.2 KiB
Nix
75 lines
1.2 KiB
Nix
{ lib
|
|
, appdirs
|
|
, buildPythonPackage
|
|
, click
|
|
, diskcache
|
|
, fetchPypi
|
|
, jinja2
|
|
, jsonschema
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, setuptools-scm
|
|
, yamllint
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glean-parser";
|
|
version = "6.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "glean_parser";
|
|
inherit version;
|
|
hash = "sha256-9+U9kRMkcQY0tjao6Pmi0STqh0xw0pFU0/xZXlawkKM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest-runner" "" \
|
|
--replace "MarkupSafe>=1.1.1,<=2.0.1" "MarkupSafe>=1.1.1"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
click
|
|
diskcache
|
|
jinja2
|
|
jsonschema
|
|
pyyaml
|
|
yamllint
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
disabledTests = [
|
|
# Network access
|
|
"test_validate_ping"
|
|
# Fails since yamllint 1.27.x
|
|
"test_yaml_lint"
|
|
];
|
|
|
|
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 = with maintainers; [];
|
|
};
|
|
}
|