diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-22 16:57:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 16:57:06 +0200 |
commit | 8a8d3342ea12e493be4abf54236e345c3b0d7938 (patch) | |
tree | 30788821d491fc479e9126466015b499117db47c /pkgs/development/python-modules | |
parent | 5601436a52b0220aefc1710574ff5de515757f9b (diff) | |
parent | 13140ece61fb07a31dc508596359602bf1a8c3b0 (diff) | |
download | nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar.gz nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar.bz2 nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar.lz nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar.xz nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.tar.zst nixlib-8a8d3342ea12e493be4abf54236e345c3b0d7938.zip |
Merge pull request #131055 from Luflosi/add-sphinx-copybutton
python3Packages.sphinx-copybutton: init at 0.4.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/sphinx-copybutton/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sphinx-copybutton/default.nix b/pkgs/development/python-modules/sphinx-copybutton/default.nix new file mode 100644 index 000000000000..8d408d300c71 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-copybutton/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, sphinx +}: + +buildPythonPackage rec { + pname = "sphinx-copybutton"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "executablebooks"; + repo = "sphinx-copybutton"; + rev = "v${version}"; + sha256 = "sha256-vrEIvQeP7AMXSme1PBp0ox5k8Q1rz+1cbHIO+o17Jqc="; + fetchSubmodules = true; + }; + + propagatedBuildInputs = [ + sphinx + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ "sphinx_copybutton" ]; + + meta = with lib; { + description = "A small sphinx extension to add a \"copy\" button to code blocks"; + homepage = "https://github.com/executablebooks/sphinx-copybutton"; + license = licenses.mit; + maintainers = with maintainers; [ Luflosi ]; + }; +} |