From 8ea82df76d9c0e11ddc830ed39d4075e6c5eb84f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Dec 2021 11:53:19 +0100 Subject: [PATCH] python3Packages.pygogo: update checkPhase --- .../python-modules/pygogo/default.nix | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pygogo/default.nix b/pkgs/development/python-modules/pygogo/default.nix index 8af5e856c41f..8cee037bb106 100644 --- a/pkgs/development/python-modules/pygogo/default.nix +++ b/pkgs/development/python-modules/pygogo/default.nix @@ -10,6 +10,7 @@ buildPythonPackage rec { pname = "pygogo"; version = "0.13.2"; + format = "setuptools"; disabled = pythonOlder "3.6"; @@ -20,14 +21,31 @@ buildPythonPackage rec { sha256 = "19rdf4sjrm5lp1vq1bki21a9lrkzz8sgrfwgjdkq4sgy90hn1jn9"; }; - nativeBuildInputs = [ pkutils ]; + nativeBuildInputs = [ + pkutils + ]; - checkInputs = [ nose ]; - checkPhase = "nosetests"; - pythonImportsCheck = [ "pygogo" ]; + checkInputs = [ + nose + ]; + + postPatch = '' + substituteInPlace dev-requirements.txt \ + --replace "pkutils>=1.0.0,<2.0.0" "pkutils>=1.0.0" + ''; + + checkPhase = '' + runHook preCheck + nosetests + runHook postCheck + ''; + + pythonImportsCheck = [ + "pygogo" + ]; meta = with lib; { - description = "A Python logging library with super powers"; + description = "Python logging library"; homepage = "https://github.com/reubano/pygogo/"; license = licenses.mit; maintainers = with maintainers; [ drewrisinger ];