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 { lib
, pbr, requests , buildPythonPackage
, pytest, waitress }: , fetchPypi
, pbr
, requests
, pytestCheckHook
, waitress
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "requests-unixsocket"; pname = "requests-unixsocket";
@ -14,10 +19,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ pbr ]; nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [ requests ];
checkInputs = [ pytest waitress ]; checkInputs = [ pytestCheckHook waitress ];
checkPhase = ''
preCheck = ''
rm pytest.ini rm pytest.ini
py.test
''; '';
meta = with lib; { meta = with lib; {