depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxext-opengraph/default.nix

38 lines
768 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, sphinx
, pytestCheckHook
, beautifulsoup4
}:
buildPythonPackage rec {
pname = "sphinxext-opengraph";
version = "0.6.2";
src = fetchFromGitHub {
owner = "wpilibsuite";
repo = "sphinxext-opengraph";
rev = "v${version}";
sha256 = "sha256-3bZFFtGW6j/3m/3F4+tapZujzpMZnrIcYTngDCNGylI=";
};
propagatedBuildInputs = [
sphinx
];
checkInputs = [
pytestCheckHook
beautifulsoup4
];
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 ];
};
}