8 pythonImportsCheckHook,
9 pythonCatchConflictsHook,
16 # build libsigrok plus its Python bindings. Unfortunately it does not appear
17 # to be possible to build them separately, at least not easily.
19 (libsigrok.override { inherit python; }).overrideAttrs (orig: {
20 pname = "${python.libPrefix}-sigrok";
22 patches = orig.patches or [ ] ++ [
23 # Makes libsigrok install the bindings into site-packages properly (like
24 # we expect) instead of making a version-specific *.egg subdirectory.
25 ./python-install.patch
29 orig.nativeBuildInputs or [ ]
36 ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
37 pythonImportsCheckHook
38 pythonCatchConflictsHook
41 buildInputs = orig.buildInputs or [ ] ++ [
42 pygobject3 # makes headers available the configure script checks for
45 propagatedBuildInputs = orig.propagatedBuildInputs or [ ] ++ [
51 ${orig.postInstall or ""}
53 # for pythonImportsCheck
54 export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
57 pythonImportsCheck = [
63 description = "Python bindings for libsigrok";
64 maintainers = orig.meta.maintainers ++ [ lib.maintainers.sternenseemann ];