blob: 58312bdce739c07b59deb4873398215525c1f35e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, sphinx
, matplotlib
, pytestCheckHook
, pythonOlder
, beautifulsoup4
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sphinxext-opengraph";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "wpilibsuite";
repo = "sphinxext-opengraph";
rev = "refs/tags/v${version}";
hash = "sha256-B+bJ1tKqTTlbNeJLxk56o2a21n3Yg6OHwJiFfCx46aw=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
passthru.optional-dependencies = {
social_cards_generation = [
matplotlib
];
};
propagatedBuildInputs = [
sphinx
];
nativeCheckInputs = [
pytestCheckHook
beautifulsoup4
] ++ passthru.optional-dependencies.social_cards_generation;
pythonImportsCheck = [ "sphinxext.opengraph" ];
meta = with lib; {
description = "Sphinx extension to generate unique OpenGraph metadata";
homepage = "https://github.com/wpilibsuite/sphinxext-opengraph";
changelog = "https://github.com/wpilibsuite/sphinxext-opengraph/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ Luflosi ];
};
}
|