mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-01-29 00:29:40 +01:00
3ef8b1f97b
* Move scheduler.py into scripts/ . * docker: Python scheduler image. * Update channels-lock.scm. * Use tortoise 0.18.1 and aerich 0.6.2. * Use fishinthecalculator/publish-docker-image-action@v0.1.10 . * Make intervals configurable. * Add platforms to README.md .
29 lines
1.1 KiB
Scheme
29 lines
1.1 KiB
Scheme
(define-module (docker image)
|
|
#:use-module (guix build-system python)
|
|
#:use-module (guix gexp) ;; for #$ and #~
|
|
#:use-module (guix packages)
|
|
#:use-module (docker mobilizon-reshare) ;; for mobilizon-reshare.git
|
|
#: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}.")))
|