python-packages/poezio: Fix tests

Poezio doesn't install the files required for running the tests, but
also while building with Nix we don't end up getting valid shared
objects within the temporary build directory.

So we now running "make test" (which does "py.test -v test/") with a
PYTHONPATH that adds the /poezio directory of the path in site-packages
to make sure that the test runner is able to import the shared objects.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @lancelotsix
This commit is contained in:
aszlig 2016-01-29 17:20:25 +01:00
parent 313b88621b
commit 2a12e9dacc
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -24472,6 +24472,10 @@ in modules // {
buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self ; [ aiodns slixmpp pyinotify potr ];
checkPhase = ''
PYTHONPATH="$PYTHONPATH:$out/${python.sitePackages}/poezio" make test
'';
patches =
let patch_base = ../development/python-modules/poezio;
in [ "${patch_base}/make_default_config_writable.patch" ];