Merge pull request #131253 from SuperSandro2000/requests-unixsocket

pythonPackages.requests-unixsocket: switch to pytestCheckHook

authored by Fabian Affolter and committed by GitHub 106f6ab8 7645d830

+11 -6
+11 -6
pkgs/development/python-modules/requests-unixsocket/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 2 - , pbr, requests 3 - , pytest, waitress }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pbr 5 + , requests 6 + , pytestCheckHook 7 + , waitress 8 + }: 4 9 5 10 buildPythonPackage rec { 6 11 pname = "requests-unixsocket"; ··· 14 19 nativeBuildInputs = [ pbr ]; 15 20 propagatedBuildInputs = [ requests ]; 16 21 17 - checkInputs = [ pytest waitress ]; 18 - checkPhase = '' 22 + checkInputs = [ pytestCheckHook waitress ]; 23 + 24 + preCheck = '' 19 25 rm pytest.ini 20 - py.test 21 26 ''; 22 27 23 28 meta = with lib; {