2021-03-17 19:58:05 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
2017-03-01 21:54:34 +01:00
|
|
|
buildPythonPackage rec {
|
2017-09-05 11:16:41 +02:00
|
|
|
pname = "python-dateutil";
|
2019-11-19 15:35:34 +01:00
|
|
|
version = "2.8.1";
|
2017-03-01 21:54:34 +01:00
|
|
|
|
2017-09-05 11:16:41 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 15:35:34 +01:00
|
|
|
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
2017-03-01 21:54:34 +01:00
|
|
|
};
|
|
|
|
|
2021-03-17 19:58:05 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2017-03-01 21:54:34 +01:00
|
|
|
|
2021-03-17 19:58:05 +01:00
|
|
|
propagatedBuildInputs = [ six ];
|
2019-02-14 08:37:14 +01:00
|
|
|
|
2021-03-17 19:58:05 +01:00
|
|
|
# cyclic dependency: tests need freezegun, which depends on python-dateutil
|
2019-02-14 08:37:14 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-17 19:58:05 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dateutil.easter"
|
|
|
|
"dateutil.parser"
|
|
|
|
"dateutil.relativedelta"
|
|
|
|
"dateutil.rrule"
|
|
|
|
"dateutil.tz"
|
|
|
|
"dateutil.utils"
|
|
|
|
"dateutil.zoneinfo"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-03-01 21:54:34 +01:00
|
|
|
description = "Powerful extensions to the standard datetime module";
|
2021-03-17 19:58:05 +01:00
|
|
|
homepage = "https://github.com/dateutil/dateutil/";
|
|
|
|
license = with licenses; [ asl20 bsd3 ];
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-03-01 21:54:34 +01:00
|
|
|
};
|
|
|
|
}
|