diff --git a/pkgs/development/python-modules/arrow/default.nix b/pkgs/development/python-modules/arrow/default.nix index 36f2963b2ba..4fdf55bc2bd 100644 --- a/pkgs/development/python-modules/arrow/default.nix +++ b/pkgs/development/python-modules/arrow/default.nix @@ -1,6 +1,6 @@ -{ stdenv, buildPythonPackage, fetchPypi +{ stdenv, lib, buildPythonPackage, fetchPypi, isPy27 , nose, chai, simplejson, backports_functools_lru_cache -, dateutil, pytz, mock, dateparser +, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov, pytest }: buildPythonPackage rec { @@ -12,19 +12,26 @@ buildPythonPackage rec { sha256 = "eb5d339f00072cc297d7de252a2e75f272085d1231a3723f1026d1fa91367118"; }; + propagatedBuildInputs = [ python-dateutil ] + ++ lib.optionals isPy27 [ backports_functools_lru_cache ]; + + checkInputs = [ + dateparser + pytest + pytestcov + pytest-mock + pytz + simplejson + sphinx + ]; + checkPhase = '' - nosetests --cover-package=arrow + pytest ''; - checkInputs = [ nose chai simplejson pytz ]; - propagatedBuildInputs = [ dateutil backports_functools_lru_cache mock dateparser]; - - postPatch = '' - substituteInPlace setup.py --replace "==1.2.1" "" - ''; - - meta = with stdenv.lib; { + meta = with lib; { description = "Python library for date manipulation"; + homepage = "https://github.com/crsmithdev/arrow"; license = licenses.asl20; maintainers = with maintainers; [ thoughtpolice ]; };