git.iko.soy/typeable/nixpkgs
on master help sign in
bonfire: fix build with pytest 4
commit59d07914da0dc3a83385a25c272211139100e424 authorMario Rodas <marsam@users.noreply.github.com> dateSat 13 Jul 2019, 04:25 (7 years ago) parent9e36f82
1 file changed+6−1
pkgs/tools/misc/bonfire/default.nix+6−1
pkgs/tools/misc/bonfire/default.nix+6−1
@@ -30,7 +30,12 @@ buildPythonApplication rec {
3030 --replace "data_files = *.rst, *.txt" ""
3131 '';
3232
33− buildInputs = [ httpretty pytest_3 pytestcov ];
33+ buildInputs = [ httpretty pytest pytestcov ];
34+
35+ preCheck = ''
36+ # fix compatibility with pytest 4
37+ substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
38+ '';
3439
3540 propagatedBuildInputs = [ arrow click keyring parsedatetime requests six termcolor ];
3641