depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-jquery/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

36 lines
806 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pythonImportsCheckHook
, sphinx
}:
buildPythonPackage rec {
pname = "sphinx-jquery";
version = "3.0.0";
format = "flit";
src = fetchFromGitHub {
owner = "sphinx-contrib";
repo = "jquery";
rev = "v${version}";
hash = "sha256-argG+jMUqLiWo4lKWAmHmUxotHl+ddJuJZ/zcUl9u5Q=";
};
nativeBuildInputs = [
pythonImportsCheckHook
flit-core
];
propagatedBuildInputs = [ sphinx ];
pythonImportsCheck = [ "sphinxcontrib.jquery" ];
meta = with lib; {
description = "A sphinx extension that ensures that jQuery is installed for use in Sphinx themes or extensions";
homepage = "https://github.com/sphinx-contrib/jquery";
license = licenses.bsd0;
maintainers = with maintainers; [ kaction ];
};
}