aboutsummaryrefslogtreecommitdiff
path: root/guix.scm
blob: c6e4efeaba735bf55a5f047b7c774a29404a28ba (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
58
59
60
(use-modules (git oid)
	     (guix gexp)
	     (git bindings)
	     (git reference)
	     (git repository)
	     (guix packages)
	     (guix git-download)
	     (gnu packages check)
	     (gnu packages databases)
	     (gnu packages python-xyz)
	     (gnu packages python-web)
	     (guix build-system python)
	     (gnu packages python-check)
	     ((guix licenses) #:prefix license:))

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

(libgit2-init!)
(define gnqc-py
  (let ((commit (oid->string
		 (reference-target
		  (repository-head (repository-open %source-dir)))))
	(revision "3"))
    (package
      (name "genenetwork-qc")
      (version (git-version "0.0.1" revision commit))
      (source (local-file %source-dir
			  "gnqc_py-checkout"
			  #:recursive? #t
			  #:select? (git-predicate %source-dir)))
      (build-system python-build-system)
      (arguments
       `(#:phases
	 (modify-phases %standard-phases
	   (replace 'check
	     (lambda* (#:key tests? #:allow-other-keys)
	       (when tests?
		 (invoke "pytest")))))))
      (inputs
       (list redis
	     python-mypy
	     python-pylint
	     python-pytest
	     python-hypothesis))
      (propagated-inputs
       (list gunicorn
	     python-redis
	     python-flask
	     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://git.genenetwork.org/fredmanglis/gnqc_py")
      (license license:agpl3+))))

(libgit2-shutdown!)

gnqc-py