diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-06-22 15:33:46 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-06-23 16:09:22 -0700 |
commit | 67e8240371062b36534f08af9ed312a6e04f5239 (patch) | |
tree | e53dd0e2896980f09124120a5317c1b46b4f9b63 /pkgs/development/python-modules/tempora | |
parent | 4920a00d5da638ea0f34639871c067d9910f07b4 (diff) |
python3Packages.tempora: fix tests
Diffstat (limited to 'pkgs/development/python-modules/tempora')
-rw-r--r-- | pkgs/development/python-modules/tempora/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/tempora/default.nix b/pkgs/development/python-modules/tempora/default.nix index d1f40f349f4f3..9b54953d28cef 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; { |