about summary refs log tree commit diff
path: root/pkgs/development/python-modules/recommonmark/default.nix
blob: f6965fd6cd933d0e6c941c12f367fecac57d7c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 ];
  };
}