python3.pkgs.tempora: fix tests

This commit is contained in:
Jörg Thalheim
2020-06-25 10:24:38 +01:00
parent 2a49306482
commit 0153111575
2 changed files with 37 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pytest, freezegun, backports_unittest-mock
, pytest-black, pytestcov, pytest-flake8
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools }:
buildPythonPackage rec {
@@ -14,13 +13,18 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools_scm ];
patches = [
./0001-pytest-remove-flake8-black-coverage.patch
];
propagatedBuildInputs = [ six pytz jaraco_functools ];
checkInputs = [ pytest pytest-flake8 pytest-black pytestcov freezegun backports_unittest-mock ];
checkInputs = [
pytest-freezegun pytest freezegun backports_unittest-mock
];
# missing pytest-freezegun package
checkPhase = ''
pytest -k 'not get_nearest_year_for_day'
pytest
'';
meta = with lib; {