pythonPackages.markdownsuperscript: fix build, enable tests

This commit is contained in:
Gabriel Ebner 2019-06-01 11:57:17 +02:00
parent c8861f3bee
commit 879a5c8d8f

View file

@ -1,4 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi, markdown }:
{ stdenv, buildPythonPackage, fetchPypi, markdown,
pytest, pytestrunner, pytestcov, coverage }:
buildPythonPackage rec {
pname = "MarkdownSuperscript";
@ -11,7 +12,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [ markdown ];
doCheck = false; # See https://github.com/NixOS/nixpkgs/pull/26985
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";