python3Packages.python-dbusmock: backport networkmanager 1.54.2 fix (#471047)
This commit is contained in:
@@ -116,10 +116,10 @@ stdenv.mkDerivation rec {
|
||||
(python3.pythonOnBuildForHost.withPackages (
|
||||
pp: with pp; [
|
||||
dbus-python
|
||||
(python-dbusmock.overridePythonAttrs (attrs: {
|
||||
(python-dbusmock.override {
|
||||
# Avoid dependency cycle.
|
||||
doCheck = false;
|
||||
}))
|
||||
})
|
||||
]
|
||||
))
|
||||
];
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
runCommand,
|
||||
|
||||
# build-system
|
||||
@@ -12,6 +13,7 @@
|
||||
dbus-python,
|
||||
|
||||
# checks
|
||||
doCheck ? true,
|
||||
dbus,
|
||||
gobject-introspection,
|
||||
pygobject3,
|
||||
@@ -40,6 +42,14 @@ buildPythonPackage rec {
|
||||
hash = "sha256-9YnMOQUuwAcrL0ZaQr7iGly9esZaSRIFThQRNUtSndo=";
|
||||
};
|
||||
|
||||
patches = lib.optionals doCheck [
|
||||
(fetchpatch {
|
||||
name = "networkmanager-1.54.2.patch";
|
||||
url = "https://github.com/martinpitt/python-dbusmock/commit/1ce6196a687d324a55fbf1f74e0f66a4e83f7a15.patch";
|
||||
hash = "sha256-Wo7AhmZu74cTHT9I36+NGGSU9dcFwmcDvtzgseTj/yA=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
@@ -47,6 +57,8 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [ dbus-python ];
|
||||
|
||||
inherit doCheck;
|
||||
|
||||
nativeCheckInputs = [
|
||||
dbus
|
||||
gobject-introspection
|
||||
|
||||
Reference in New Issue
Block a user