2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sphinx
|
2023-03-08 16:32:21 +00:00
|
|
|
, matplotlib
|
2021-12-19 01:06:50 +00:00
|
|
|
, pytestCheckHook
|
2023-03-08 16:32:21 +00:00
|
|
|
, pythonOlder
|
2021-12-19 01:06:50 +00:00
|
|
|
, beautifulsoup4
|
2022-12-17 10:02:37 +00:00
|
|
|
, setuptools-scm
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxext-opengraph";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.8.2";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wpilibsuite";
|
|
|
|
repo = "sphinxext-opengraph";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-SrZTtVzEp4E87fzisWKHl8iRP49PWt5kkJq62CqXrBc=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
2023-03-08 16:32:21 +00:00
|
|
|
matplotlib
|
2021-08-05 21:33:18 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
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";
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/wpilibsuite/sphinxext-opengraph/releases/tag/v${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
|
|
};
|
|
|
|
}
|