diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-03-17 19:58:05 +0100 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-03-17 22:44:31 +0100 |
commit | 928aeb268681fa4fd4837d48a189865373209a0e (patch) | |
tree | 5df75f2374a624fd0cccbcc08a4f1b65879cab63 /pkgs/development/python-modules/dateutil | |
parent | 266dc8c3d052f549826ba246d06787a219533b8f (diff) |
pythonPackages.python-dateutil: modernize expression
Diffstat (limited to 'pkgs/development/python-modules/dateutil')
-rw-r--r-- | pkgs/development/python-modules/dateutil/default.nix | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/dateutil/default.nix b/pkgs/development/python-modules/dateutil/default.nix index dcad0c3698a79..e71a532a806d6 100644 --- a/pkgs/development/python-modules/dateutil/default.nix +++ b/pkgs/development/python-modules/dateutil/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, setuptools-scm +, six +}: + buildPythonPackage rec { pname = "python-dateutil"; version = "2.8.1"; @@ -8,19 +14,27 @@ buildPythonPackage rec { sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ six setuptools_scm ]; + nativeBuildInputs = [ setuptools-scm ]; - checkPhase = '' - py.test dateutil/test - ''; + propagatedBuildInputs = [ six ]; - # Requires fixing + # cyclic dependency: tests need freezegun, which depends on python-dateutil doCheck = false; + pythonImportsCheck = [ + "dateutil.easter" + "dateutil.parser" + "dateutil.relativedelta" + "dateutil.rrule" + "dateutil.tz" + "dateutil.utils" + "dateutil.zoneinfo" + ]; + meta = with lib; { description = "Powerful extensions to the standard datetime module"; - homepage = "https://pypi.python.org/pypi/python-dateutil"; - license = "BSD-style"; + homepage = "https://github.com/dateutil/dateutil/"; + license = with licenses; [ asl20 bsd3 ]; + maintainers = with maintainers; [ dotlambda ]; }; } |