python311Packages.python-dateutil: avoid DeprecationWarning on Python 3.12

This commit is contained in:
Robert Schütz 2024-02-07 18:01:54 -08:00
parent faf912b086
commit eaf159f146

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, setuptools-scm
, six
}:
@ -14,6 +15,15 @@ buildPythonPackage rec {
hash = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY=";
};
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=";
})
];
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six ];