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