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