python3Packages.tempora: fix tests
This commit is contained in:
parent
4920a00d5d
commit
67e8240371
1 changed files with 5 additions and 4 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue