From c856904cb527f2bcfd6ebeab5407b34051629978 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sun, 17 Oct 2021 15:18:28 +0800 Subject: [PATCH] python3Packages.versionfinder: use pytestCheckHook --- .../development/python-modules/versionfinder/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/versionfinder/default.nix b/pkgs/development/python-modules/versionfinder/default.nix index a6c36e07c51e..69d77551fcd3 100644 --- a/pkgs/development/python-modules/versionfinder/default.nix +++ b/pkgs/development/python-modules/versionfinder/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchFromGitHub, GitPython, pytest, backoff, requests }: +{ lib, buildPythonPackage, fetchFromGitHub, GitPython, pytestCheckHook, backoff, requests }: buildPythonPackage rec { pname = "versionfinder"; @@ -17,10 +17,15 @@ buildPythonPackage rec { ]; checkInputs = [ - pytest + pytestCheckHook requests ]; + disabledTestPaths = [ + # acceptance tests use the network + "versionfinder/tests/test_acceptance.py" + ]; + pythonImportsCheck = [ "versionfinder" ]; meta = with lib; {