diff options
Diffstat (limited to '.guix/modules/gnqc-py.scm')
-rw-r--r-- | .guix/modules/gnqc-py.scm | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/.guix/modules/gnqc-py.scm b/.guix/modules/gnqc-py.scm deleted file mode 100644 index 4e198fa..0000000 --- a/.guix/modules/gnqc-py.scm +++ /dev/null @@ -1,46 +0,0 @@ -(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 |