2017-10-29 13:54:56 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-01-14 14:46:25 +01:00
|
|
|
, fetchFromGitHub
|
2017-10-29 13:54:56 +01:00
|
|
|
, pytest
|
2019-01-14 14:46:25 +01:00
|
|
|
, CommonMark
|
2017-10-29 13:54:56 +01:00
|
|
|
, docutils
|
2019-01-14 14:46:25 +01:00
|
|
|
, sphinx
|
2017-10-29 13:54:56 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recommonmark";
|
2019-01-14 14:46:25 +01:00
|
|
|
version = "0.5.0";
|
2017-10-29 13:54:56 +01:00
|
|
|
|
2019-01-14 14:46:25 +01:00
|
|
|
# PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rtfd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "04bjqx2hczmg7rnj2rpsjk7h24diwk83s6fhgrxk00k40w2bpz5j";
|
2017-10-29 13:54:56 +01:00
|
|
|
};
|
|
|
|
|
2019-01-14 14:46:25 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ CommonMark docutils sphinx ];
|
2017-10-29 13:54:56 +01:00
|
|
|
|
2019-01-14 14:46:25 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-10-29 13:54:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
|
|
|
homepage = https://github.com/rtfd/recommonmark;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-01-14 14:46:25 +01:00
|
|
|
}
|