python.pkgs.pytest_3: keep older version

because not all test suites are compatible with 4 yet.
This commit is contained in:
Frederik Rietdijk
2019-02-14 11:07:19 +01:00
parent b4acd97729
commit b3febfb850
5 changed files with 63 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, setuptools_scm }:
, pytest_3, setuptools_scm }:
buildPythonPackage rec {
pname = "apipkg";
@@ -10,8 +10,8 @@ buildPythonPackage rec {
sha256 = "37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6";
};
buildInputs = [ setuptools_scm ];
checkInputs = [ pytest ];
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ pytest_3 ];
checkPhase = ''
py.test