summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/rst2html5
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2017-05-01 18:12:36 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2017-05-01 18:12:36 -0300
commit4a87eae13c65b590d4e346b526b6e070f23dbaab (patch)
tree6f6e55a63c8e5e37b3e434d1daba3ef9cd933f7b /pkgs/tools/text/rst2html5
parent234b1cf794c1f0f85e7d7f0353d8bd98c47f6ce5 (diff)
rst2html5: put its expression in a separate file
As recommended by @7c6f434c and @FRidh, rst2html5 now resides in its proper file.
Diffstat (limited to 'pkgs/tools/text/rst2html5')
-rw-r--r--pkgs/tools/text/rst2html5/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/text/rst2html5/default.nix b/pkgs/tools/text/rst2html5/default.nix
new file mode 100644
index 000000000000..3d8afd0540ab
--- /dev/null
+++ b/pkgs/tools/text/rst2html5/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, pythonPackages }:
+
+pythonPackages.buildPythonPackage rec {
+
+ name = "${pname}-${version}";
+ pname = "rst2html5";
+ version = "1.9.3";
+
+ src = fetchurl {
+ url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
+ sha256 = "1js90asy7s0278b4p28inkkp0r7ajr5fk5pcdgcdw628a30vl3i6";
+ };
+
+ propagatedBuildInputs = with pythonPackages;
+ [ docutils genshi pygments beautifulsoup4 ];
+
+ meta = with stdenv.lib;{
+ homepage = "https://bitbucket.org/andre_felipe_dias/rst2html5";
+ description = "Converts ReSTructuredText to (X)HTML5";
+ license = licenses.mit;
+ maintainers = with maintainers; [ AndersonTorres ];
+ };
+}