diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/time-tracking.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/time-tracking.scm')
-rw-r--r-- | px/packages/time-tracking.scm | 98 |
1 files changed, 50 insertions, 48 deletions
diff --git a/px/packages/time-tracking.scm b/px/packages/time-tracking.scm index ba5c999..9d4c7f6 100644 --- a/px/packages/time-tracking.scm +++ b/px/packages/time-tracking.scm @@ -1,9 +1,10 @@ ;;; Time Tracking Packages Module for PantherX -;;; Author: Fakhri Sajadi (f.sajadi@pantherx.org) +;;; Fakhri Sajadi (f.sajadi@pantherx.org) ;;; (define-module (px packages time-tracking) - #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix licenses) + #:prefix license:) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system cmake) @@ -26,76 +27,77 @@ #:use-module (px packages hub) #:use-module (guix gexp)) - (define-public px-time-tracking (package (name "px-time-tracking") (version "0.0.7") (source - (origin - (method url-fetch) - (uri (string-append - "https://source.pantherx.org/px-time-tracking_" version ".tgz")) - (sha256 - (base32 - "0d34fp4vzxh191ilp19m4ms91zxr2pdsah0wcb98vsw8hi8wf71w")))) + (origin + (method url-fetch) + (uri (string-append "https://source.pantherx.org/px-time-tracking_" + version ".tgz")) + (sha256 + (base32 "0d34fp4vzxh191ilp19m4ms91zxr2pdsah0wcb98vsw8hi8wf71w")))) (build-system cmake-build-system) (arguments - `( - #:tests? #f)) - (inputs `( - ("sqlite" ,sqlite) + `(#:tests? #f)) + (inputs `(("sqlite" ,sqlite) ("sqlitecpp" ,sqlitecpp) ("zlib" ,zlib) ("yaml-cpp" ,yaml-cpp) ("capnproto" ,capnproto-0.9) ("qtcharts" ,qtcharts) ("qtbase" ,qtbase-5))) - (native-inputs `( - ("pkg-config" ,pkg-config) - ("python" ,python) - ("px-gui-library" ,px-gui-library) - ("pybind11" ,pybind11))) + (native-inputs `(("pkg-config" ,pkg-config) + ("python" ,python) + ("px-gui-library" ,px-gui-library) + ("pybind11" ,pybind11))) (home-page "https://www.pantherx.org/") (synopsis "PantherX Time Tracking Service") - (description "This package provides background services to tracking time spend on issues in PantherX") + (description + "This package provides background services to tracking time spend on issues in PantherX") (license license:expat))) - (define-public px-time-tracking-plugin-gitlab (package (name "px-time-tracking-plugin-gitlab") (version "0.0.3") (source - (origin - (method url-fetch) - (uri (string-append - "https://source.pantherx.org/" name "_" version ".tgz")) - (sha256 (base32 "1qq9pdmyj0ar6l8m49n7n3bmzjfbxim7h3wjvg9znizz6lm2hw98")))) + (origin + (method url-fetch) + (uri (string-append "https://source.pantherx.org/" name "_" version + ".tgz")) + (sha256 + (base32 "1qq9pdmyj0ar6l8m49n7n3bmzjfbxim7h3wjvg9znizz6lm2hw98")))) (build-system python-build-system) (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'install 'register-plugin - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (type "python") - (regpath (string-append out "/etc/px/time-tracking/plugins")) - (regdata (string-append "plugin:" - "\n name: " ,name - "\n version: " ,version - "\n type: " type - "\n path: " out - "\n"))) - (display regdata) - (mkdir-p regpath) - (with-output-to-file (string-append regpath "/" ,name ".yaml") - (lambda _ (format #t regdata)))))) - (delete 'sanity-check)))) - (propagated-inputs - `(("px-hub-service-plugin-common", px-hub-service-plugin-common) - ("px-online-sources-library", px-online-sources-library))) + `(#:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'install 'register-plugin + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (type "python") + (regpath (string-append out + "/etc/px/time-tracking/plugins")) + (regdata (string-append "plugin:" + "\n name: " + ,name + "\n version: " + ,version + "\n type: " + type + "\n path: " + out + "\n"))) + (display regdata) + (mkdir-p regpath) + (with-output-to-file (string-append regpath "/" + ,name ".yaml") + (lambda _ + (format #t regdata)))))) + (delete 'sanity-check)))) + (propagated-inputs `(("px-hub-service-plugin-common" ,px-hub-service-plugin-common) + ("px-online-sources-library" ,px-online-sources-library))) (home-page "https://www.pantherx.org/") (synopsis "GitLab plugin for PantherX Time Tracking Service") (description "Adds support to retrieve data from GitLab API.") |