depot/third_party/nixpkgs/pkgs/development/python-modules/markdownsuperscript/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
865 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, markdown,
pytest, pytestrunner, pytestcov, coverage }:
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
'';
checkInputs = [ pytest pytestrunner pytestcov coverage ];
meta = {
description = "An extension to the Python Markdown package enabling superscript text";
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
license = stdenv.lib.licenses.bsd2;
};
}