From 8f82e7e3dc234693afbaa0375726dbd44a19a0f8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 26 Dec 2019 09:38:37 +0200 Subject: [PATCH] gnu: python-pathos: Run test suite. * gnu/packages/python-xyz.scm (python-pathos)[arguments]: Use custom 'check phase. [native-inputs]: Add python-pytest. --- gnu/packages/python-xyz.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0f9afe66be..5b8f377017 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16999,11 +16999,21 @@ essential tools are located.") (base32 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1")))) (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append (getcwd) ":" (getenv "PYTHONPATH"))) + (invoke "python" "./tests/__main__.py")))))) (propagated-inputs `(("python-dill" ,python-dill) ("python-multiprocess" ,python-multiprocess) ("python-pox" ,python-pox) ("python-ppft" ,python-ppft))) + (native-inputs + `(("python-pytest" ,python-pytest))) (home-page "https://pypi.org/project/pathos/") (synopsis "Parallel graph management and execution in heterogeneous computing")