pythonPackages.markdownsuperscript: fix build, enable tests
This commit is contained in:
parent
c8861f3bee
commit
879a5c8d8f
1 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, markdown }:
|
{ stdenv, buildPythonPackage, fetchPypi, markdown,
|
||||||
|
pytest, pytestrunner, pytestcov, coverage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "MarkdownSuperscript";
|
pname = "MarkdownSuperscript";
|
||||||
|
@ -11,7 +12,15 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ markdown ];
|
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 = {
|
meta = {
|
||||||
description = "An extension to the Python Markdown package enabling superscript text";
|
description = "An extension to the Python Markdown package enabling superscript text";
|
||||||
|
|
Loading…
Reference in a new issue