From cf3963a5d40f0c402bb376b9bc0835a114b8e8a9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 27 Feb 2023 01:28:02 +0100 Subject: [PATCH] python310Packages.sphinxcontrib-jquery: Enable tests, update meta --- .../sphinxcontrib-jquery/default.nix | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix index d0f44ebef978..1905659b25f0 100644 --- a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix @@ -2,18 +2,19 @@ , buildPythonPackage , fetchFromGitHub , flit-core +, pytestCheckHook , sphinx }: buildPythonPackage rec { pname = "sphinxcontrib-jquery"; version = "3.0.0"; - format = "flit"; + format = "pyproject"; src = fetchFromGitHub { owner = "sphinx-contrib"; repo = "jquery"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-argG+jMUqLiWo4lKWAmHmUxotHl+ddJuJZ/zcUl9u5Q="; }; @@ -21,13 +22,23 @@ buildPythonPackage rec { flit-core ]; - propagatedBuildInputs = [ sphinx ]; + pythonImportsCheck = [ + "sphinxcontrib.jquery" + ]; - pythonImportsCheck = [ "sphinxcontrib.jquery" ]; + nativeCheckInputs = [ + pytestCheckHook + sphinx + ]; meta = with lib; { - description = "A sphinx extension that ensures that jQuery is installed for use in Sphinx themes or extensions"; + description = "Extension to include jQuery on newer Sphinx releases"; + longDescription = '' + A sphinx extension that ensures that jQuery is installed for use + in Sphinx themes or extensions + ''; homepage = "https://github.com/sphinx-contrib/jquery"; + changelog = "https://github.com/sphinx-contrib/jquery/blob/v${version}/CHANGES.rst"; license = licenses.bsd0; maintainers = with maintainers; [ kaction ]; };