1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, sphinx 5}: 6 7buildPythonPackage rec { 8 pname = "sphinx-copybutton"; 9 version = "0.5.2"; 10 11 src = fetchFromGitHub { 12 owner = "executablebooks"; 13 repo = "sphinx-copybutton"; 14 rev = "v${version}"; 15 hash = "sha256-LM2LtQuYsPRJ2XX9aAW36xRtwghTkzug6A6fpVJ6hbk="; 16 fetchSubmodules = true; 17 }; 18 19 propagatedBuildInputs = [ 20 sphinx 21 ]; 22 23 doCheck = false; # no tests 24 25 pythonImportsCheck = [ "sphinx_copybutton" ]; 26 27 meta = with lib; { 28 description = "A 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}