1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 sphinx,
6 requests,
7 flit-core,
8}:
9
10buildPythonPackage rec {
11 pname = "sphinxcontrib-youtube";
12 version = "1.4.1";
13 format = "pyproject";
14
15 nativeBuildInputs = [ flit-core ];
16
17 src = fetchFromGitHub {
18 owner = "sphinx-contrib";
19 repo = "youtube";
20 tag = "v${version}";
21 hash = "sha256-XuOfZ77tg9akmgTuMQN20OhgkFbn/6YzT46vpTsXxC8=";
22 };
23
24 propagatedBuildInputs = [
25 sphinx
26 requests
27 ];
28
29 # tests require internet access
30 doCheck = false;
31
32 pythonImportsCheck = [ "sphinxcontrib.youtube" ];
33
34 pythonNamespaces = [ "sphinxcontrib" ];
35
36 meta = with lib; {
37 description = "Youtube extension for Sphinx";
38 homepage = "https://github.com/sphinx-contrib/youtube";
39 maintainers = with maintainers; [ gador ];
40 license = licenses.bsd3;
41 };
42}