diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-03-10 03:16:11 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:34 +0200 |
commit | 6b1426e75574defaddcdfe97b5e825edeca71c3f (patch) | |
tree | c1c217c98c9811af57a872e2e67ac1ede89a3e20 | |
parent | 0fd283c17807ff07d7cdb12f4f40f4ed748171f8 (diff) | |
download | guix-6b1426e75574defaddcdfe97b5e825edeca71c3f.tar.gz guix-6b1426e75574defaddcdfe97b5e825edeca71c3f.zip |
gnu: graphite-web: Update to 1.1.10-2.49c28e2.
* gnu/packages/monitoring.scm (graphite-web): Update to 1.1.10-2.49c28e2.
Change-Id: I10355a9b398b42bab04963608ed43d21a7df6fe6
Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r-- | gnu/packages/monitoring.scm | 99 |
1 files changed, 62 insertions, 37 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index b75500fc08..1009c32783 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -69,6 +69,7 @@ #:use-module (gnu packages prometheus) #:use-module (gnu packages python) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages rrdtool) @@ -461,45 +462,69 @@ and persisting them to disk using the Whisper time-series library.") (license license:asl2.0))) (define-public graphite-web - (package - (name "graphite-web") - (version "1.1.10") - (source - (origin - (method url-fetch) - (uri (pypi-uri "graphite-web" version)) - (sha256 - (base32 - "0nnk3kwn0b6bq9xnmv9bac6hpcbdgpgwf283c1ck5nm80panh61z")))) - (build-system python-build-system) - (arguments - `(#:tests? #f ;XXX: not in PyPI release & requires database - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "setup.py" - ;; Allow newer versions of django-tagging. - (("django-tagging==") "django-tagging>=") - ;; And Django. - (("Django>=1\\.8,<3\\.1") "Django>=1.8,<4")))) - ;; Don't install to /opt - (add-after 'unpack 'do-not-install-to-/opt - (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t))))) - (propagated-inputs - (list python-cairocffi - python-django-3.2 - python-django-tagging - python-pyparsing - python-pytz - python-six - python-urllib3)) - (home-page "https://graphiteapp.org/") - (synopsis "Scalable realtime graphing system") - (description "Graphite is a scalable real-time graphing system that does + (let ((commit "49c28e2015d605ad9ec93524f7076dd924a4731a") + (revision "2")) + (package + (name "graphite-web") + (version (git-version "1.1.10" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/graphite-project/graphite-web") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bcc6jh7gyp8f54dzy4zza1z46gk3530r952pi86irf834z106sg")))) + (build-system pyproject-build-system) + (arguments + `(#:tests? #f ;XXX: Requires database, unable to run now + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "setup.py" + ;; Allow newer versions of django-tagging. + (("django-tagging==") "django-tagging>=") + ;; And Django. + (("Django>=3\\.2,<4") "Django>=4,<5")))) + ;; Don't install to /opt + (add-after 'unpack 'do-not-install-to-/opt + (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (mkdir-p "storage/log/webapp") + (with-directory-excursion "webapp" + (invoke "./manage.py" "test" "--pythonpath=." "tests" + "-k" (string-join + (list + "not test_dashboard_save_temporary_xss_key" + "test_dashboard_save_temporary_xss_name") + " and not "))))))))) + (native-inputs + (list python-carbon + python-mock + python-pytest + python-rrdtool + python-setuptools + python-tzdata + python-wheel + python-whisper)) + (propagated-inputs + (list python-cairocffi + python-django-4.2 + python-django-tagging + python-pyparsing + python-pytz + python-six + python-urllib3)) + (home-page "https://graphiteapp.org/") + (synopsis "Scalable realtime graphing system") + (description "Graphite is a scalable real-time graphing system that does two things: store numeric time-series data, and render graphs of this data on demand.") - (license license:asl2.0))) + (license license:asl2.0)))) (define-public python-prometheus-client (package |