diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-06-23 19:54:08 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-06-23 19:54:08 +0200 |
commit | 3f328a5108746708201815f6515d700dadc94f21 (patch) | |
tree | 7b5e30a5dca275d310a325a22cea20d8ad7be5f9 /pkgs | |
parent | e6eaafffffea036b31e427699c0edb7bc9393761 (diff) |
python3.pkgs.systemd: Fix compatibility with Python 3.10
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/systemd/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/systemd/default.nix b/pkgs/development/python-modules/systemd/default.nix index 7c6bb41cfdd35..b27af96edbd75 100644 --- a/pkgs/development/python-modules/systemd/default.nix +++ b/pkgs/development/python-modules/systemd/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, fetchpatch , fetchFromGitHub , systemd , pkg-config @@ -16,6 +17,15 @@ buildPythonPackage rec { 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 = [ pkg-config ]; |