Python: Difference between revisions
imported>Tomberek mNo edit summary |
imported>Jtojnar GNOME: link the manual as the doc PR was merged |
||
| Line 119: | Line 119: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Special Modules == | == Special Modules == | ||
=== | === GNOME === | ||
<code>gobject-introspection</code> based python modules need some environment variables to work correctly. For standalone | <code>gobject-introspection</code> based python modules need some environment variables to work correctly. For standalone | ||
applications, <code>wrapGAppsHook</code> (see | applications, <code>wrapGAppsHook</code> (see the [relevant documentation https://nixos.org/nixpkgs/manual/#sec-language-gnome]) wraps the executable with the necessary variables. But this is not fit for development. | ||
In this case use a <code>nix-shell</code> with <code>gobject-introspection</code> and all the libraries you are using (gtk and so on) as <code>buildInputs</code>. | In this case use a <code>nix-shell</code> with <code>gobject-introspection</code> and all the libraries you are using (gtk and so on) as <code>buildInputs</code>. | ||
For example: | For example: | ||