aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.guix/genenetwork3-package.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/.guix/genenetwork3-package.scm b/.guix/genenetwork3-package.scm
index 9833213..16095d5 100644
--- a/.guix/genenetwork3-package.scm
+++ b/.guix/genenetwork3-package.scm
@@ -1,6 +1,8 @@
(define-module (genenetwork3-package)
#:use-module ((gn packages genenetwork)
#:select (genenetwork3) #:prefix gn:)
+ #:use-module ((gnu packages check) #:select (python-pylint))
+ #:use-module ((gnu packages python-check) #:select (python-mypy))
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix git-download)
@@ -16,4 +18,23 @@
#:select? (or (git-predicate (dirname (current-source-directory)))
(const #t))))))
+(define-public genenetwork3-all-tests
+ (package
+ (inherit genenetwork3)
+ (arguments
+ (substitute-keyword-arguments (package-arguments genenetwork3)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-before 'build 'pylint
+ (lambda _
+ (invoke "pylint" "main.py" "setup.py" "wsgi.py" "setup_commands"
+ "tests" "gn3" "scripts" "sheepdog")))
+ (add-after 'pylint 'mypy
+ (lambda _
+ (invoke "mypy" ".")))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs genenetwork3)
+ (prepend python-pylint)
+ (prepend python-mypy)))))
+
genenetwork3