about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2025-07-07 13:03:13 +0100
committerArun Isaac2025-07-07 13:20:37 +0100
commitbc141b2de493d30537a532d1c6cf05fea02357aa (patch)
tree7087dabad63029dddb0d54428be083cf413f444e
parentf5a245d1dc7e7680a979c52ec77cdc3e54ccea4a (diff)
downloadpyhegp-bc141b2de493d30537a532d1c6cf05fea02357aa.tar.gz
pyhegp-bc141b2de493d30537a532d1c6cf05fea02357aa.tar.lz
pyhegp-bc141b2de493d30537a532d1c6cf05fea02357aa.zip
Make repo a guix channel.
* .guix-channel: New file.
* guix.scm: Move to ...
* .guix/pyhegp-package.scm: ... here as its own module.
* guix.scm: Link to .guix/pyhegp-package.scm.
-rw-r--r--.guix-channel3
-rw-r--r--.guix/pyhegp-package.scm55
l---------[-rw-r--r--]guix.scm54
3 files changed, 59 insertions, 53 deletions
diff --git a/.guix-channel b/.guix-channel
new file mode 100644
index 0000000..35e181f
--- /dev/null
+++ b/.guix-channel
@@ -0,0 +1,3 @@
+(channel
+ (version 0)
+ (directory ".guix"))
diff --git a/.guix/pyhegp-package.scm b/.guix/pyhegp-package.scm
new file mode 100644
index 0000000..7d3cfad
--- /dev/null
+++ b/.guix/pyhegp-package.scm
@@ -0,0 +1,55 @@
+;;; pyhegp --- Homomorphic encryption of genotypes and phenotypes
+;;; Copyright © 2025 Arun Isaac <arunisaac@systemreboot.net>
+;;;
+;;; This file is part of pyhegp.
+;;;
+;;; pyhegp is free software: you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation, either version 3 of the License, or
+;;; (at your option) any later version.
+;;;
+;;; pyhegp is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with pyhegp. If not, see <https://www.gnu.org/licenses/>.
+
+(define-module (pyhegp-package)
+  #:use-module ((gnu packages check) #:select (python-hypothesis python-pytest))
+  #:use-module ((gnu packages python-build) #:select (python-flit-core))
+  #:use-module ((gnu packages python-science) #:select (python-scipy))
+  #:use-module ((gnu packages python-xyz) #:select (python-click python-numpy))
+  #:use-module (guix build-system pyproject)
+  #:use-module (guix gexp)
+  #:use-module (guix git-download)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix utils))
+
+(define-public python-pyhegp
+  (package
+    (name "python-pyhegp")
+    (version "0.1.0")
+    (source (local-file ".."
+                        "pyhegp-checkout"
+                        #:recursive? #t
+                        #:select? (or (git-predicate (dirname (current-source-directory)))
+                                      (const #t))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list python-flit-core
+           python-hypothesis
+           python-pytest))
+    (propagated-inputs
+     (list python-click
+           python-numpy
+           python-scipy))
+    (home-page "https://github.com/encryption4genetics/pyhegp")
+    (synopsis "Homomorphic encryption of genotypes and phenotypes")
+    (description "@code{python-pyhegp} provides a Python library and CLI utilities
+implementing homomorphic encryption of genotypes and phenotypes.")
+    (license license:gpl3+)))
+
+python-pyhegp
diff --git a/guix.scm b/guix.scm
index 44bbf73..0ce274d 100644..120000
--- a/guix.scm
+++ b/guix.scm
@@ -1,53 +1 @@
-;;; pyhegp --- Homomorphic encryption of genotypes and phenotypes
-;;; Copyright © 2025 Arun Isaac <arunisaac@systemreboot.net>
-;;;
-;;; This file is part of pyhegp.
-;;;
-;;; pyhegp is free software: you can redistribute it and/or modify it
-;;; under the terms of the GNU General Public License as published by
-;;; the Free Software Foundation, either version 3 of the License, or
-;;; (at your option) any later version.
-;;;
-;;; pyhegp is distributed in the hope that it will be useful, but
-;;; WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with pyhegp. If not, see <https://www.gnu.org/licenses/>.
-
-(use-modules ((gnu packages check) #:select (python-hypothesis python-pytest))
-             ((gnu packages python-build) #:select (python-flit-core))
-             ((gnu packages python-science) #:select (python-scipy))
-             ((gnu packages python-xyz) #:select (python-click python-numpy))
-             (guix build-system pyproject)
-             (guix gexp)
-             (guix git-download)
-             ((guix licenses) #:prefix license:)
-             (guix packages)
-             (guix utils))
-
-(define-public python-pyhegp
-  (package
-    (name "python-pyhegp")
-    (version "0.1.0")
-    (source (local-file "."
-                        "pyhegp-checkout"
-                        #:recursive? #t
-                        #:select? (git-predicate (current-source-directory))))
-    (build-system pyproject-build-system)
-    (native-inputs
-     (list python-flit-core
-           python-hypothesis
-           python-pytest))
-    (propagated-inputs
-     (list python-click
-           python-numpy
-           python-scipy))
-    (home-page "https://github.com/encryption4genetics/pyhegp")
-    (synopsis "Homomorphic encryption of genotypes and phenotypes")
-    (description "@code{python-pyhegp} provides a Python library and CLI utilities
-implementing homomorphic encryption of genotypes and phenotypes.")
-    (license license:gpl3+)))
-
-python-pyhegp
+.guix/pyhegp-project.scm
\ No newline at end of file