Merge pull request #116657 from dotlambda/python-dateutil-modernize
[staging] pythonPackages.python-dateutil: modernize expression
This commit is contained in:
commit
c7a1f01c95
1 changed files with 23 additions and 9 deletions
|
@ -1,4 +1,10 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools-scm
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-dateutil";
|
pname = "python-dateutil";
|
||||||
version = "2.8.1";
|
version = "2.8.1";
|
||||||
|
@ -8,19 +14,27 @@ buildPythonPackage rec {
|
||||||
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
propagatedBuildInputs = [ six setuptools_scm ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [ six ];
|
||||||
py.test dateutil/test
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Requires fixing
|
# cyclic dependency: tests need freezegun, which depends on python-dateutil
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"dateutil.easter"
|
||||||
|
"dateutil.parser"
|
||||||
|
"dateutil.relativedelta"
|
||||||
|
"dateutil.rrule"
|
||||||
|
"dateutil.tz"
|
||||||
|
"dateutil.utils"
|
||||||
|
"dateutil.zoneinfo"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Powerful extensions to the standard datetime module";
|
description = "Powerful extensions to the standard datetime module";
|
||||||
homepage = "https://pypi.python.org/pypi/python-dateutil";
|
homepage = "https://github.com/dateutil/dateutil/";
|
||||||
license = "BSD-style";
|
license = with licenses; [ asl20 bsd3 ];
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue