forked from mirrors/nixpkgs
45 lines
887 B
Nix
45 lines
887 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, sphinx
|
|
, pytestCheckHook
|
|
, beautifulsoup4
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinxext-opengraph";
|
|
version = "0.7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wpilibsuite";
|
|
repo = "sphinxext-opengraph";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-N8448GHg/lR7z7Y4F4vO7z+wAeaboo8Cj0X+HSyToAA=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|