depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-youtube/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

38 lines
822 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, sphinx
, requests
, flit-core
}:
buildPythonPackage rec {
pname = "sphinxcontrib-youtube";
version = "1.4.1";
format = "pyproject";
nativeBuildInputs = [ flit-core ];
src = fetchFromGitHub {
owner = "sphinx-contrib";
repo = "youtube";
rev = "refs/tags/v${version}";
hash = "sha256-XuOfZ77tg9akmgTuMQN20OhgkFbn/6YzT46vpTsXxC8=";
};
propagatedBuildInputs = [ sphinx requests ];
# tests require internet access
doCheck = false;
pythonImportsCheck = [ "sphinxcontrib.youtube" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
description = "Youtube extension for Sphinx";
homepage = "https://github.com/sphinx-contrib/youtube";
maintainers = with maintainers; [ gador ];
license = licenses.bsd3;
};
}