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