Merge pull request #131253 from SuperSandro2000/requests-unixsocket

pythonPackages.requests-unixsocket: switch to pytestCheckHook
This commit is contained in:
Fabian Affolter 2021-07-24 22:15:17 +02:00 committed by GitHub
commit 106f6ab845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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; {