aboutsummaryrefslogtreecommitdiff
path: root/.guix/modules/gnqc-py.scm
blob: 4ff86b56a8305b4eb4b0af1fc19fed236c66a71d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(define-module (gnqc-py)
  #:use-module (guix)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)

  #:use-module (gnu packages check)
  #:use-module (gnu packages databases)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages python-web)
  #:use-module (guix build-system python)
  #:use-module (gnu packages python-check))

(define %source-dir (dirname (dirname (current-source-directory))))

(define vcs-file?
  (or (git-predicate %source-dir)
      (const #t)))

(define gnqc-py
  (package
    (name "gnqc-py")
    (version "0.0.1")
    (source (local-file "../.."
			"gnqc-py-checkout"
			#:recursive? #t
			#:select? vcs-file?))
    (build-system python-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
	  (replace 'check
	    (lambda* (#:key tests? #:allow-other-keys)
	      (when tests?
		(invoke "pytest" "-k" "unit_test")))))))
    (native-inputs
     (list python-mypy
	   python-pylint
	   python-pytest
	   python-hypothesis))
    (propagated-inputs
     (list gunicorn
	   python-redis
	   python-flask
	   python-pyyaml
	   python-jsonpickle
	   python-mysqlclient))
    (synopsis "GeneNetwork Quality Control Application")
    (description
     "GeneNetwork qc is a quality control application for the data files that
 eventually are used to add to the data in the GeneNetwork project.")
    (home-page "https://gitlab.com/fredmanglis/gnqc_py")
    (license license:agpl3+)))

gnqc-py