2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, markdown,
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest, pytest-runner, pytest-cov, coverage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MarkdownSuperscript";
|
|
|
|
version = "2.1.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "2c255b5959c1f5dd364ae80762bd0a568a0fcc9fd4e4a3d7e7b192e88adf8900";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markdown ];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest pytest-runner pytest-cov coverage ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An extension to the Python Markdown package enabling superscript text";
|
|
|
|
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.bsd2;
|
2020-12-07 07:45:13 +00:00
|
|
|
broken = true; # unmaintained in nixpkgs, barely maintained in pypi, added 2020-11-29
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|