diff options
author | Frederick Muriuki Muriithi | 2024-03-11 03:18:45 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-11 03:18:45 +0300 |
commit | e152c8dd8694810d7d4c8cbbd241e80ff2b5c565 (patch) | |
tree | 7209fd94f6ba4cb03fc9aa0ebd52c7d2ffb51303 /.guix/modules/gn-uploader.scm | |
parent | 352a6158ca491ce4e3a462ccf207c711687ec3ec (diff) | |
download | gn-uploader-e152c8dd8694810d7d4c8cbbd241e80ff2b5c565.tar.gz |
Rename module
Diffstat (limited to '.guix/modules/gn-uploader.scm')
-rw-r--r-- | .guix/modules/gn-uploader.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.guix/modules/gn-uploader.scm b/.guix/modules/gn-uploader.scm new file mode 100644 index 0000000..4e198fa --- /dev/null +++ b/.guix/modules/gn-uploader.scm @@ -0,0 +1,46 @@ +(define-module (gn-uploader) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (guix git-download) + + #:use-module ((gnu packages check) #:select (python-pylint)) + #:use-module ((gnu packages python-check) #:select (python-mypy)) + + #:use-module ((gn packages genenetwork) #:select (gn-uploader) #:prefix gn:)) + +(define %source-dir (dirname (dirname (current-source-directory)))) + +(define vcs-file? + (or (git-predicate %source-dir) + (const #t))) + +(define-public gn-uploader + (package + (inherit gn:gn-uploader) + (source + (local-file "../.." + "gn-uploader-checkout" + #:recursive? #t + #:select? vcs-file?)))) + +(define-public gn-uploader-all-tests + (package + (inherit gn-uploader) + (arguments + (substitute-keyword-arguments (package-arguments gn-uploader) + ((#:phases #~%standard-phases) + #~(modify-phases #$phases + (add-before 'build 'pylint + (lambda _ + (invoke "pylint" "setup.py" "wsgi.py" "tests" "quality_control" + "qc_app" "r_qtl" "scripts"))) + (add-after 'pylint 'mypy + (lambda _ + (invoke "mypy" "."))))))) + (native-inputs + (modify-inputs (package-native-inputs gn-uploader) + (prepend python-mypy) + (prepend python-pylint))))) + +gn-uploader |