aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-08-20 17:02:34 +0200
committerRicardo Wurmus <rekado@elephly.net>2024-08-20 22:18:00 +0200
commit974be4b5ccd6d6afe01cc438165248a596f30512 (patch)
tree2d61cb155f5c9ee9910a1fa52989266f1a94a5c8
parentc22ee2b5ea03416b3ac04fc28c7390e82d84c69f (diff)
downloadguix-974be4b5ccd6d6afe01cc438165248a596f30512.tar.gz
guix-974be4b5ccd6d6afe01cc438165248a596f30512.zip
gnu: Add sugar-classify-cats-activity.
* gnu/packages/sugar.scm (sugar-classify-cats-activity): New variable. Change-Id: I1a5a09ec9c17d381d580d1081ac2b65336ad1141
-rw-r--r--gnu/packages/sugar.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 2cc5dc1685..ac17cc1397 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -613,6 +613,53 @@ present in gene regulatory networks.")
or classmates.")
(license license:gpl2+))))
+(define-public sugar-classify-cats-activity
+ (let ((commit "83aa89788c65bfdd3f77e24ac5a32b37f9518e54")
+ (revision "1"))
+ (package
+ (name "sugar-classify-cats-activity")
+ (version (git-version "2" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/classify-cats")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "101drh1dqgr9qsz3r1fzkcn5h6z720zskaqnz2aixzp2ybvh17wk"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:test-target "check"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-launcher
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "activity/activity.info"
+ (("exec = sugar-activity3")
+ (string-append "exec = "
+ (search-input-file inputs "/bin/sugar-activity3"))))))
+ (replace 'install
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" #$output)))))))
+ ;; All these libraries are accessed via gobject introspection.
+ (propagated-inputs
+ (list gdk-pixbuf
+ gobject-introspection
+ gtk+
+ python-pygobject
+ sugar-toolkit-gtk3))
+ (native-inputs
+ (list gettext-minimal))
+ (home-page "https://github.com/sugarlabs/classify-cats")
+ (synopsis "Classify cats based on various criteria")
+ (description "This is a Sugar activity where players classify cats based
+on various criteria.")
+ (license license:gpl3+))))
+
(define-public sugar-help-activity
(let ((commit "492531e95a4c60af9b85c79c59c24c06c2cd4bb3")
(revision "1"))