Am 21.04.2016 um 15:21 schrieb Ben Woodcroft:
+ (add-after 'install 'post-install-check + ;; 'setup.py test' does not run tests + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "PYTHONPATH" + (string-append + (getenv "PYTHONPATH") + ":" + out + "/lib/python" + (string-take (string-take-right + (assoc-ref inputs "python") 5) 3) + "/site-packages")) + (zero? + (system* + (string-append out "/bin/py.test") "test_pep8.py"))))))))
Have you tried if the tests are run when moving the test-file into a new subdirectory "tests/"? This would result in much less code.