From 67e8240371062b36534f08af9ed312a6e04f5239 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 22 Jun 2020 15:33:46 -0700 Subject: [PATCH] python3Packages.tempora: fix tests --- pkgs/development/python-modules/tempora/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/tempora/default.nix b/pkgs/development/python-modules/tempora/default.nix index d1f40f349f4..9b54953d28c 100644 --- a/pkgs/development/python-modules/tempora/default.nix +++ b/pkgs/development/python-modules/tempora/default.nix @@ -1,5 +1,6 @@ { lib, buildPythonPackage, fetchPypi , setuptools_scm, pytest, freezegun, backports_unittest-mock +, pytest-black, pytestcov, pytest-flake8 , six, pytz, jaraco_functools }: buildPythonPackage rec { @@ -11,15 +12,15 @@ buildPythonPackage rec { sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8"; }; - buildInputs = [ setuptools_scm ]; + nativeBuildInputs = [ setuptools_scm ]; propagatedBuildInputs = [ six pytz jaraco_functools ]; - checkInputs = [ pytest freezegun backports_unittest-mock ]; + checkInputs = [ pytest pytest-flake8 pytest-black pytestcov freezegun backports_unittest-mock ]; + # missing pytest-freezegun package checkPhase = '' - substituteInPlace pytest.ini --replace "--flake8" "" - pytest + pytest -k 'not get_nearest_year_for_day' ''; meta = with lib; {