mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
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:
parent
313b88621b
commit
2a12e9dacc
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user