Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-copybutton / default.nix
blob040bed82cdec416d40bfdc7fc54a9de22965ef67
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , sphinx
5 }:
7 buildPythonPackage rec {
8   pname = "sphinx-copybutton";
9   version = "0.5.2";
11   src = fetchFromGitHub {
12     owner = "executablebooks";
13     repo = "sphinx-copybutton";
14     rev = "v${version}";
15     hash = "sha256-LM2LtQuYsPRJ2XX9aAW36xRtwghTkzug6A6fpVJ6hbk=";
16     fetchSubmodules = true;
17   };
19   propagatedBuildInputs = [
20     sphinx
21   ];
23   doCheck = false; # no tests
25   pythonImportsCheck = [ "sphinx_copybutton" ];
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   };