From 0840e427e6dd1ccc766af5e96e1bfa7a27b45f55 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 30 Aug 2018 19:43:27 +0200 Subject: [PATCH] pythonPackages.bottleneck: get rid of warnings during tests --- pkgs/development/python-modules/bottleneck/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bottleneck/default.nix b/pkgs/development/python-modules/bottleneck/default.nix index c9ca8f7ec047..c4db013ea34d 100644 --- a/pkgs/development/python-modules/bottleneck/default.nix +++ b/pkgs/development/python-modules/bottleneck/default.nix @@ -1,6 +1,7 @@ { buildPythonPackage , fetchPypi , nose +, pytest , numpy , python }: @@ -15,10 +16,10 @@ buildPythonPackage rec { sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36"; }; - checkInputs = [ nose ]; + checkInputs = [ pytest nose ]; propagatedBuildInputs = [ numpy ]; checkPhase = '' - nosetests -v $out/${python.sitePackages} + py.test -p no:warnings $out/${python.sitePackages} ''; postPatch = '' substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""