1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, sphinx
5, pytestCheckHook
6, beautifulsoup4
7}:
8
9buildPythonPackage rec {
10 pname = "sphinxext-opengraph";
11 version = "0.6.3";
12
13 src = fetchFromGitHub {
14 owner = "wpilibsuite";
15 repo = "sphinxext-opengraph";
16 rev = "v${version}";
17 sha256 = "sha256-YR6TlsmND5IhLdbPbmtVhRN2vSZfx70g2a6Yn6y6L/M=";
18 };
19
20 propagatedBuildInputs = [
21 sphinx
22 ];
23
24 checkInputs = [
25 pytestCheckHook
26 beautifulsoup4
27 ];
28
29 pythonImportsCheck = [ "sphinxext.opengraph" ];
30
31 meta = with lib; {
32 description = "Sphinx extension to generate unique OpenGraph metadata";
33 homepage = "https://github.com/wpilibsuite/sphinxext-opengraph";
34 license = licenses.mit;
35 maintainers = with maintainers; [ Luflosi ];
36 };
37}