python3Packages.plyer: Fix FTBFS

OPNA2608 0c409dde 36177855

+25 -2
+25 -2
pkgs/development/python-modules/plyer/default.nix
··· 3 3 lib, 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 + fetchpatch, 6 7 keyring, 7 - mock, 8 8 pytestCheckHook, 9 9 }: 10 10 ··· 20 20 sha256 = "sha256-7Icb2MVj5Uit86lRHxal6b7y9gIJ3UT2HNqpA9DYWVE="; 21 21 }; 22 22 23 + patches = [ 24 + # Fix compatibility with Python 3.13 25 + (fetchpatch { 26 + name = "0001-plyer-Use-unittest-mock.patch"; 27 + url = "https://github.com/kivy/plyer/commit/c9e73f395e2b51d46ada68119abfae2973591c00.patch"; 28 + hash = "sha256-rWak2GOGnsw+GhEtdob9h1c39aa6Z1yU7vH9kdGjHO0="; 29 + }) 30 + (fetchpatch { 31 + name = "0002-plyer-Remove-whitespace-error-during-self.assertEqual-function-call.patch"; 32 + url = "https://github.com/kivy/plyer/commit/8393c61dfd3a7aa0362d3bf530ba9ca052878c1a.patch"; 33 + hash = "sha256-omjpQJQ+vZ6T12vL6LvKOuRSihiHfLdEZ1pDat8VuiM="; 34 + }) 35 + (fetchpatch { 36 + name = "0003-plyer-Replace obj.__doc__-with-getdoc-obj-to-automatically-remove-new-lines.patch"; 37 + url = "https://github.com/kivy/plyer/commit/675750f31e9f98cd5de2df732afe34648f343d3e.patch"; 38 + hash = "sha256-Lb7MbbcIjwbfnR8U6t9j0c+bqU7kK3/xEt13pSF8G6M="; 39 + }) 40 + (fetchpatch { 41 + name = "0004-plyer-Remove-newline-and-indentation-comparisons-during-self.assertEqual-function-call.patch"; 42 + url = "https://github.com/kivy/plyer/commit/31e96f689771cd43f0a925463a59fcbc49f58e46.patch"; 43 + hash = "sha256-ZYYftI4w+21Q6oKm1wku7NJg3xfkIpkjN+PvZY0YjyY="; 44 + }) 45 + ]; 46 + 23 47 postPatch = '' 24 48 rm -r examples 25 49 # remove all the wifi stuff. Depends on a python wifi module that has not been updated since 2016 ··· 34 58 propagatedBuildInputs = [ keyring ]; 35 59 36 60 nativeCheckInputs = [ 37 - mock 38 61 pytestCheckHook 39 62 ]; 40 63