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