From 44a05c2d4b343b3aa34a009d8b42a1ce1bbb6708 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Thu, 21 Jul 2022 19:30:05 +0100 Subject: [PATCH] python3Packages.pyosmium: switch to pytestCheckHook --- pkgs/development/python-modules/pyosmium/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyosmium/default.nix b/pkgs/development/python-modules/pyosmium/default.nix index b0cc948f8468..3401e905a1a0 100644 --- a/pkgs/development/python-modules/pyosmium/default.nix +++ b/pkgs/development/python-modules/pyosmium/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, fetchFromGitHub, cmake, python , libosmium, protozero, boost, expat, bzip2, zlib, pybind11 -, nose, shapely, pythonOlder, isPyPy, lz4, requests }: +, shapely, pythonOlder, isPyPy, lz4, requests, pytestCheckHook +}: buildPythonPackage rec { pname = "pyosmium"; @@ -21,9 +22,10 @@ buildPythonPackage rec { preBuild = "cd .."; - checkInputs = [ nose shapely ]; - - checkPhase = "(cd test && ${python.interpreter} run_tests.py)"; + checkInputs = [ + pytestCheckHook + shapely + ]; meta = with lib; { description = "Python bindings for libosmium";