bonfire: fix build with pytest 4

This commit is contained in:
Mario Rodas 2019-07-13 04:25:00 -05:00 committed by Frederik Rietdijk
parent 9e36f82367
commit 59d07914da

View file

@ -30,7 +30,12 @@ buildPythonApplication rec {
--replace "data_files = *.rst, *.txt" ""
'';
buildInputs = [ httpretty pytest_3 pytestcov ];
buildInputs = [ httpretty pytest pytestcov ];
preCheck = ''
# fix compatibility with pytest 4
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
'';
propagatedBuildInputs = [ arrow click keyring parsedatetime requests six termcolor ];