tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.plyer: Fix FTBFS
OPNA2608
5 months ago
0c409dde
36177855
+25
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
plyer
default.nix
+25
-2
pkgs/development/python-modules/plyer/default.nix
···
3
3
lib,
4
4
buildPythonPackage,
5
5
fetchFromGitHub,
6
6
+
fetchpatch,
6
7
keyring,
7
7
-
mock,
8
8
pytestCheckHook,
9
9
}:
10
10
···
20
20
sha256 = "sha256-7Icb2MVj5Uit86lRHxal6b7y9gIJ3UT2HNqpA9DYWVE=";
21
21
};
22
22
23
23
+
patches = [
24
24
+
# Fix compatibility with Python 3.13
25
25
+
(fetchpatch {
26
26
+
name = "0001-plyer-Use-unittest-mock.patch";
27
27
+
url = "https://github.com/kivy/plyer/commit/c9e73f395e2b51d46ada68119abfae2973591c00.patch";
28
28
+
hash = "sha256-rWak2GOGnsw+GhEtdob9h1c39aa6Z1yU7vH9kdGjHO0=";
29
29
+
})
30
30
+
(fetchpatch {
31
31
+
name = "0002-plyer-Remove-whitespace-error-during-self.assertEqual-function-call.patch";
32
32
+
url = "https://github.com/kivy/plyer/commit/8393c61dfd3a7aa0362d3bf530ba9ca052878c1a.patch";
33
33
+
hash = "sha256-omjpQJQ+vZ6T12vL6LvKOuRSihiHfLdEZ1pDat8VuiM=";
34
34
+
})
35
35
+
(fetchpatch {
36
36
+
name = "0003-plyer-Replace obj.__doc__-with-getdoc-obj-to-automatically-remove-new-lines.patch";
37
37
+
url = "https://github.com/kivy/plyer/commit/675750f31e9f98cd5de2df732afe34648f343d3e.patch";
38
38
+
hash = "sha256-Lb7MbbcIjwbfnR8U6t9j0c+bqU7kK3/xEt13pSF8G6M=";
39
39
+
})
40
40
+
(fetchpatch {
41
41
+
name = "0004-plyer-Remove-newline-and-indentation-comparisons-during-self.assertEqual-function-call.patch";
42
42
+
url = "https://github.com/kivy/plyer/commit/31e96f689771cd43f0a925463a59fcbc49f58e46.patch";
43
43
+
hash = "sha256-ZYYftI4w+21Q6oKm1wku7NJg3xfkIpkjN+PvZY0YjyY=";
44
44
+
})
45
45
+
];
46
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
37
-
mock
38
61
pytestCheckHook
39
62
];
40
63