python3Packages.tempora: fix tests
This commit is contained in:
parent
4920a00d5d
commit
67e8240371
@ -1,5 +1,6 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, setuptools_scm, pytest, freezegun, backports_unittest-mock
|
, setuptools_scm, pytest, freezegun, backports_unittest-mock
|
||||||
|
, pytest-black, pytestcov, pytest-flake8
|
||||||
, six, pytz, jaraco_functools }:
|
, six, pytz, jaraco_functools }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -11,15 +12,15 @@ buildPythonPackage rec {
|
|||||||
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
|
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
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 = ''
|
checkPhase = ''
|
||||||
substituteInPlace pytest.ini --replace "--flake8" ""
|
pytest -k 'not get_nearest_year_for_day'
|
||||||
pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user