2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-02-29 20:09:43 +00:00
|
|
|
, fetchpatch
|
2021-04-05 15:23:46 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-dateutil";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "2.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/dateutil/dateutil/pull/1285
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/dateutil/dateutil/commit/f2293200747fb03d56c6c5997bfebeabe703576f.patch";
|
|
|
|
relative = "src";
|
|
|
|
hash = "sha256-BVEFGV/WGUz9H/8q+l62jnyN9VDnoSR71DdL+LIkb0o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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; {
|
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
|
|
|
};
|
|
|
|
}
|