2019-06-01 10:57:17 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, markdown,
|
|
|
|
pytest, pytestrunner, pytestcov, coverage }:
|
2017-06-30 10:34:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MarkdownSuperscript";
|
2018-11-04 10:35:05 +00:00
|
|
|
version = "2.1.1";
|
2017-06-30 10:34:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:05 +00:00
|
|
|
sha256 = "2c255b5959c1f5dd364ae80762bd0a568a0fcc9fd4e4a3d7e7b192e88adf8900";
|
2017-06-30 10:34:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markdown ];
|
|
|
|
|
2019-06-01 10:57:17 +01: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 10:34:11 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An extension to the Python Markdown package enabling superscript text";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
|
2017-06-30 10:34:11 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2020-11-29 17:32:18 +00:00
|
|
|
broken = true; # unmaintained in nixpkgs, barely maintained in pypi, added 2020-11-29
|
2017-06-30 10:34:11 +01:00
|
|
|
};
|
|
|
|
}
|