diff options
author | Arun Isaac | 2023-12-19 20:32:22 +0000 |
---|---|---|
committer | Arun Isaac | 2023-12-19 20:32:22 +0000 |
commit | b90aafb139eac3f5208122bf34a462b270ee3e1a (patch) | |
tree | 0309fb88f9e362ed2523e86ffcc1356dbf4de342 | |
parent | d5abcddba450c8b2592d42650c904ffae1ba6485 (diff) | |
download | genenetwork3-b90aafb139eac3f5208122bf34a462b270ee3e1a.tar.gz |
guix: Add genenetwork3-all-tests.
* .guix/genenetwork3-package.scm: Import python-pylint from (gnu packages
check) and python-mypy from (gnu packages python-check).
(genenetwork3-all-tests): New variable.
-rw-r--r-- | .guix/genenetwork3-package.scm | 21 |
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 |