2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sphinx
|
2021-12-19 01:06:50 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, beautifulsoup4
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxext-opengraph";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.6.2";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wpilibsuite";
|
|
|
|
repo = "sphinxext-opengraph";
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-3bZFFtGW6j/3m/3F4+tapZujzpMZnrIcYTngDCNGylI=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "sphinxext.opengraph" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sphinx extension to generate unique OpenGraph metadata";
|
|
|
|
homepage = "https://github.com/wpilibsuite/sphinxext-opengraph";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
|
|
};
|
|
|
|
}
|