1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 sphinx, 6}: 7 8buildPythonPackage rec { 9 pname = "sphinx-copybutton"; 10 version = "0.5.2"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "executablebooks"; 15 repo = "sphinx-copybutton"; 16 rev = "v${version}"; 17 hash = "sha256-LM2LtQuYsPRJ2XX9aAW36xRtwghTkzug6A6fpVJ6hbk="; 18 fetchSubmodules = true; 19 }; 20 21 propagatedBuildInputs = [ sphinx ]; 22 23 doCheck = false; # no tests 24 25 pythonImportsCheck = [ "sphinx_copybutton" ]; 26 27 meta = with lib; { 28 description = "Small sphinx extension to add a \"copy\" button to code blocks"; 29 homepage = "https://github.com/executablebooks/sphinx-copybutton"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ Luflosi ]; 32 }; 33}