2021-10-31 01:55:25 +02:00
|
|
|
(define-module (docker image)
|
2022-02-05 18:46:02 +01:00
|
|
|
#:use-module (guix build-system python)
|
2021-10-31 01:55:25 +02:00
|
|
|
#:use-module (guix gexp) ;; for #$ and #~
|
2022-02-05 18:46:02 +01:00
|
|
|
#:use-module (guix packages)
|
2021-10-31 01:55:25 +02:00
|
|
|
#:use-module (docker mobilizon-reshare) ;; for mobilizon-reshare.git
|
2022-02-05 18:46:02 +01:00
|
|
|
#:use-module (gnu packages python))
|
|
|
|
|
|
|
|
(define-public mobilizon-reshare-scheduler
|
|
|
|
(package (inherit mobilizon-reshare.git)
|
|
|
|
(name "mobilizon-reshare-scheduler")
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'build)
|
|
|
|
(delete 'check)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out")
|
|
|
|
"/bin")))
|
|
|
|
(mkdir-p bin)
|
|
|
|
(install-file "scripts/scheduler.py" bin)))))))
|
|
|
|
(propagated-inputs (list mobilizon-reshare.git
|
|
|
|
python-apscheduler-for-telegram-bot))
|
|
|
|
(synopsis "Mobilizon Reshare's scheduler")
|
|
|
|
(description "This script is intended to start a scheduler
|
|
|
|
running @code{mobilizon-reshare}.")))
|