Merge pull request #287112 from dotlambda/dateutil-python312

python311Packages.python-dateutil: avoid DeprecationWarning on Python 3.12

authored by Sandro and committed by GitHub 4c7e5978 c0e8987b

+10
+10
pkgs/development/python-modules/dateutil/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , setuptools-scm 5 , six 6 }: ··· 13 inherit pname version; 14 hash = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY="; 15 }; 16 17 nativeBuildInputs = [ setuptools-scm ]; 18
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , fetchpatch 5 , setuptools-scm 6 , six 7 }: ··· 14 inherit pname version; 15 hash = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY="; 16 }; 17 + 18 + patches = [ 19 + # https://github.com/dateutil/dateutil/pull/1285 20 + (fetchpatch { 21 + url = "https://github.com/dateutil/dateutil/commit/f2293200747fb03d56c6c5997bfebeabe703576f.patch"; 22 + relative = "src"; 23 + hash = "sha256-BVEFGV/WGUz9H/8q+l62jnyN9VDnoSR71DdL+LIkb0o="; 24 + }) 25 + ]; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28