Merge pull request #287112 from dotlambda/dateutil-python312

python311Packages.python-dateutil: avoid DeprecationWarning on Python 3.12
This commit is contained in:
Sandro 2024-02-13 01:09:35 +01:00 committed by GitHub
commit 4c7e59780d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 ];