aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/recommonmark/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/recommonmark/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/recommonmark/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/recommonmark/default.nix b/nixpkgs/pkgs/development/python-modules/recommonmark/default.nix
new file mode 100644
index 00000000000..f6965fd6cd9
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/recommonmark/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytest
+, CommonMark
+, docutils
+, sphinx
+}:
+
+buildPythonPackage rec {
+ pname = "recommonmark";
+ version = "0.5.0";
+
+ # PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128
+ src = fetchFromGitHub {
+ owner = "rtfd";
+ repo = pname;
+ rev = version;
+ sha256 = "04bjqx2hczmg7rnj2rpsjk7h24diwk83s6fhgrxk00k40w2bpz5j";
+ };
+
+ checkInputs = [ pytest ];
+ propagatedBuildInputs = [ CommonMark docutils sphinx ];
+
+ checkPhase = ''
+ py.test
+ '';
+
+ meta = {
+ description = "A docutils-compatibility bridge to CommonMark";
+ homepage = https://github.com/rtfd/recommonmark;
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ fridh ];
+ };
+}