diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-07-21 04:21:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-07-21 04:21:00 -0500 |
commit | 5ac577f1a25235b8093eaa10a70a6e2ca6c61c7a (patch) | |
tree | 269524598cdf44fead82e016a7a2ca0f77e0413e /pkgs/development/python-modules/tempora | |
parent | 94ae9f4ed542d5171104f551919b8db936123147 (diff) |
pythonPackages.tempora: enable tests
Diffstat (limited to 'pkgs/development/python-modules/tempora')
-rw-r--r-- | pkgs/development/python-modules/tempora/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/tempora/default.nix b/pkgs/development/python-modules/tempora/default.nix index 861054ed948fa..10de193866b38 100644 --- a/pkgs/development/python-modules/tempora/default.nix +++ b/pkgs/development/python-modules/tempora/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchPypi -, setuptools_scm +, setuptools_scm, pytest, freezegun, backports_unittest-mock , six, pytz, jaraco_functools }: buildPythonPackage rec { @@ -11,12 +11,17 @@ buildPythonPackage rec { sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6"; }; - doCheck = false; - buildInputs = [ setuptools_scm ]; propagatedBuildInputs = [ six pytz jaraco_functools ]; + checkInputs = [ pytest freezegun backports_unittest-mock ]; + + checkPhase = '' + substituteInPlace pytest.ini --replace "--flake8" "" + pytest + ''; + meta = with lib; { description = "Objects and routines pertaining to date and time"; homepage = https://github.com/jaraco/tempora; |