2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-dateutil";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.9.0.post0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-N91UII2n4c2HU4ghfV4A69QXkkn5D7ckN+kaNUWaCtM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "setuptools_scm<8.0" "setuptools_scm"
|
|
|
|
'';
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
# cyclic dependency: tests need freezegun, which depends on python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dateutil.easter"
|
|
|
|
"dateutil.parser"
|
|
|
|
"dateutil.relativedelta"
|
|
|
|
"dateutil.rrule"
|
|
|
|
"dateutil.tz"
|
|
|
|
"dateutil.utils"
|
|
|
|
"dateutil.zoneinfo"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/dateutil/dateutil/blob/${version}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Powerful extensions to the standard datetime module";
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/dateutil/dateutil/";
|
|
|
|
license = with licenses; [ asl20 bsd3 ];
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|