about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-25 09:09:22 +0300
committerFrederick Muriuki Muriithi2023-08-25 17:08:14 +0300
commit4b2e6de82f5b31d40e519d8ec3644fe8747862fa (patch)
treed87a35ab49b085814edf5de7ce72d89a1559ecc6
parente26fbe23bbf41f63db5f3aa1ce42cd312668a06a (diff)
downloadguix-bioinformatics-4b2e6de82f5b31d40e519d8ec3644fe8747862fa.tar.gz
gn-auth: New package
-rw-r--r--gn/packages/gn-auth.scm67
1 files changed, 67 insertions, 0 deletions
diff --git a/gn/packages/gn-auth.scm b/gn/packages/gn-auth.scm
new file mode 100644
index 0000000..eb272e0
--- /dev/null
+++ b/gn/packages/gn-auth.scm
@@ -0,0 +1,67 @@
+(define-module (gn packages gn-auth)
+  #:use-module (guix)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system python)
+  #:use-module ((guix licenses) #:prefix license:)
+
+  ;; Packages from guix
+  #:use-module (gnu packages check)
+
+  #:use-module (gnu packages django)
+
+  #:use-module (gnu packages python-web)
+  #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-crypto)
+
+  #:use-module (gnu packages databases)
+
+  ;; Packages from guix-bioinformatics
+  #:use-module (gn packages python-web))
+
+(define-public gn-auth
+  (package
+    (name "gn-auth")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+	     (url "https://github.com/genenetwork/gn-auth.git")
+	     (commit "a183445c6ecf7e99aee82a2d729378b79bed58e7")))
+       (hash
+	(content-hash
+	 (base32
+	  "053h4w705v8dai3xj3qhj54d8am39w8x504y4gvbrdyczkl2fxci")))))
+    (build-system python-build-system)
+    (arguments
+     `(#: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-pytest
+	   python-pylint
+	   python-hypothesis
+	   python-pytest-mock
+           python-mypy-extensions))
+    (propagated-inputs
+     (list gunicorn
+	   python-flask
+	   python-redis
+	   python-authlib
+	   python-pymonad
+	   yoyo-migrations
+	   python-bcrypt ;; remove after removing all references
+	   python-mysqlclient
+	   python-argon2-cffi
+	   python-email-validator))
+    (home-page "https://github.com/genenetwork/gn-auth")
+    (synopsis "Authentication and Authorisation server for GeneNetwork services")
+    (description "Authentication and Authorisation server for GeneNetwork services.")
+    (license license:agpl3+)))