Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinxcontrib-youtube / default.nix
blobab48066dc6af2e3f13bf2b0b50843533afc31958
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , sphinx
5 , requests
6 , flit-core
7 }:
9 buildPythonPackage rec {
10   pname = "sphinxcontrib-youtube";
11   version = "1.4.1";
12   format = "pyproject";
14   nativeBuildInputs = [ flit-core ];
16   src = fetchFromGitHub {
17     owner = "sphinx-contrib";
18     repo = "youtube";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-XuOfZ77tg9akmgTuMQN20OhgkFbn/6YzT46vpTsXxC8=";
21   };
23   propagatedBuildInputs = [ sphinx requests ];
25   # tests require internet access
26   doCheck = false;
28   pythonImportsCheck = [ "sphinxcontrib.youtube" ];
30   pythonNamespaces = [ "sphinxcontrib" ];
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   };