pythonPackages.requests-unixsocket: switch to pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-07-23 16:55:15 +02:00
parent 10204ffee4
commit 30f42bd4a4
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,6 +1,11 @@
{ lib, buildPythonPackage, fetchPypi
, pbr, requests
, pytest, waitress }:
{ lib
, buildPythonPackage
, fetchPypi
, pbr
, requests
, pytestCheckHook
, waitress
}:
buildPythonPackage rec {
pname = "requests-unixsocket";
@ -14,10 +19,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest waitress ];
checkPhase = ''
checkInputs = [ pytestCheckHook waitress ];
preCheck = ''
rm pytest.ini
py.test
'';
meta = with lib; {