2019-06-01 11:57:17 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, markdown,
|
|
|
|
pytest, pytestrunner, pytestcov, coverage }:
|
2017-06-30 11:34:11 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MarkdownSuperscript";
|
2018-11-04 11:35:05 +01:00
|
|
|
version = "2.1.1";
|
2017-06-30 11:34:11 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 11:35:05 +01:00
|
|
|
sha256 = "2c255b5959c1f5dd364ae80762bd0a568a0fcc9fd4e4a3d7e7b192e88adf8900";
|
2017-06-30 11:34:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markdown ];
|
|
|
|
|
2019-06-01 11:57:17 +02:00
|
|
|
postPatch = ''
|
|
|
|
# remove version bounds for Markdown dependency
|
|
|
|
sed 's/\["Markdown.*"\]/["Markdown"]/' -i setup.py
|
|
|
|
|
|
|
|
# remove version bounds for test dependencies
|
|
|
|
sed 's/=.*//' -i requirements/*.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov coverage ];
|
2017-06-30 11:34:11 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An extension to the Python Markdown package enabling superscript text";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
|
2017-06-30 11:34:11 +02:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|