From dc7bca1a3232203ec31446e24269a0035673a24d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Jan 2021 16:39:34 +0100 Subject: [PATCH] python3Packages.pyairvisual: add pythonImportsCheck and update pytestFlagsArray --- pkgs/development/python-modules/pyairvisual/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyairvisual/default.nix b/pkgs/development/python-modules/pyairvisual/default.nix index 83f82dd26d0..93146b99ec2 100644 --- a/pkgs/development/python-modules/pyairvisual/default.nix +++ b/pkgs/development/python-modules/pyairvisual/default.nix @@ -43,13 +43,13 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + # Ignore the examples as they are prefixed with test_ + pytestFlagsArray = [ "--ignore examples/" ]; + pythonImportsCheck = [ "pyairvisual" ]; meta = with lib; { description = "A simple, clean, well-tested Python library for interacting with AirVisual©"; - license = licenses.mit; + license = licenses.mit; homepage = "https://github.com/bachya/pyairvisual"; }; }