python3.pkgs.systemd: Fix compatibility with Python 3.10
This commit is contained in:
parent
e6eaafffff
commit
3f328a5108
|
@ -1,5 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchpatch
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, systemd
|
, systemd
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -16,6 +17,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "1fakw7qln44mfd6pj4kqsgyrhkc6cyr653id34kv0rdnb1bvysrz";
|
sha256 = "1fakw7qln44mfd6pj4kqsgyrhkc6cyr653id34kv0rdnb1bvysrz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix runtime issues on Python 3.10
|
||||||
|
# https://github.com/systemd/python-systemd/issues/107
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/systemd/python-systemd/commit/c71bbac357f0ac722e1bcb2edfa925b68cca23c9.patch";
|
||||||
|
sha256 = "22s72Wa/BCwNNvwbxEUh58jhHlbA00SNwNVchVDovcc=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue