diff options
Diffstat (limited to 'pkgs/development/python-modules/glean-parser/default.nix')
-rw-r--r-- | pkgs/development/python-modules/glean-parser/default.nix | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/glean-parser/default.nix b/pkgs/development/python-modules/glean-parser/default.nix index 30d4db0d2613a..953e3faa67bb5 100644 --- a/pkgs/development/python-modules/glean-parser/default.nix +++ b/pkgs/development/python-modules/glean-parser/default.nix @@ -1,33 +1,34 @@ { lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm -# build inputs , appdirs +, buildPythonPackage , click , diskcache +, fetchPypi , jinja2 , jsonschema +, pytestCheckHook +, pythonOlder , pyyaml +, setuptools-scm , yamllint }: buildPythonPackage rec { - pname = "glean_parser"; + pname = "glean-parser"; version = "5.1.0"; + format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { - inherit pname version; - sha256 = "sha256-8oMbaGsW5Lkw9OluNsXXe2IBNbjeoIb9vDjVOt+uHR0="; + pname = "glean_parser"; + inherit version; + hash = "sha256-8oMbaGsW5Lkw9OluNsXXe2IBNbjeoIb9vDjVOt+uHR0="; }; - postPatch = '' - substituteInPlace setup.py --replace "pytest-runner" "" - ''; + nativeBuildInputs = [ + setuptools-scm + ]; propagatedBuildInputs = [ appdirs @@ -38,24 +39,29 @@ buildPythonPackage rec { pyyaml yamllint ]; - nativeBuildInputs = [ - setuptools-scm - ]; checkInputs = [ pytestCheckHook ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "pytest-runner" "" + ''; + disabledTests = [ # https://bugzilla.mozilla.org/show_bug.cgi?id=1741668 "test_validate_ping" ]; - pythonImportsCheck = [ "glean_parser" ]; + 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 ]; + maintainers = with maintainers; [ kvark ]; }; } |