From 956cf5f6124c0ee518562b547d92e7b498a87a9c Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 22 Mar 2024 09:31:37 -0400 Subject: [PATCH] python3Packages.leather: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Broken in 2f4ea0c6dfb067551bff9f04c10d7c9e8eb70dcf. Upstream changed from nose to pytest. Previously, the setuptoolsCheckHook would run and execute the `./test.py` file, but that is not part of upstream’s build process and doesn’t work. Including pytestCheckHook means that does not run—just pytest. --- pkgs/development/python-modules/leather/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/leather/default.nix b/pkgs/development/python-modules/leather/default.nix index d3b446b9c331..138a412017fe 100644 --- a/pkgs/development/python-modules/leather/default.nix +++ b/pkgs/development/python-modules/leather/default.nix @@ -4,7 +4,7 @@ , six , cssselect , lxml -, nose +, pytestCheckHook }: buildPythonPackage rec { @@ -22,15 +22,9 @@ buildPythonPackage rec { nativeCheckInputs = [ cssselect lxml - nose + pytestCheckHook ]; - checkPhase = '' - runHook preCheck - nosetests - runHook postCheck - ''; - meta = with lib; { homepage = "http://leather.rtfd.io"; description = "Python charting library";