From 879a5c8d8f70a63700c18d9b4d458a54250086ca Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 1 Jun 2019 11:57:17 +0200 Subject: [PATCH] pythonPackages.markdownsuperscript: fix build, enable tests --- .../python-modules/markdownsuperscript/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/markdownsuperscript/default.nix b/pkgs/development/python-modules/markdownsuperscript/default.nix index 62bf7a93098e..1212651aec81 100644 --- a/pkgs/development/python-modules/markdownsuperscript/default.nix +++ b/pkgs/development/python-modules/markdownsuperscript/default.nix @@ -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";