Archived
1
0
Fork 0

gnu: python2-graphite-web: Update to 1.1.7.

* gnu/packages/monitoring.scm (python2-graphite-web): Rename to ...
(graphite-web): ... this.  Update to 1.1.7.
[arguments]: Add #:tests?.  Adjust setup.py substitution.
[propagated-inputs]: Use the Python 3 versions of all inputs.  Use
PYTHON-DJANGO-2.2 instead of PYTHON-DJANGO.
[home-page]: Use HTTPS.
(python2-graphite-web): Deprecate variable.
This commit is contained in:
Marius Bakke 2020-09-02 10:11:57 +02:00
parent d7922f488b
commit 94e7335e90
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -330,49 +330,52 @@ caching them in memory for \"hot queries\" from the Graphite-Web application,
and persisting them to disk using the Whisper time-series library.") and persisting them to disk using the Whisper time-series library.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python2-graphite-web (define-public graphite-web
(package (package
(name "python2-graphite-web") (name "graphite-web")
(version "1.0.2") (version "1.1.7")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "graphite-web" version)) (uri (pypi-uri "graphite-web" version))
(sha256 (sha256
(base32 (base32
"0q8bwlj75jqyzmazfsi5sa26xl58ssa8wdxm2l4j0jqyn8xpfnmc")))) "1l5a5rry9cakqxamvlx4xq63jifmncb6815bg9vy7fg1zyd3pjxk"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:python ,python-2 ; only supports Python 2 `(#:tests? #f ;XXX: not in PyPI release & requires database
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
(lambda _ (lambda _
(substitute* "setup.py" (substitute* "setup.py"
(("0.4.3") ,(package-version python2-django-tagging)) ;; Allow newer versions of django-tagging.
(("<1.9.99") (string-append "<=" (("django-tagging==")
,(package-version python2-django)))) "django-tagging>="))
#t)) #t))
;; Don't install to /opt ;; Don't install to /opt
(add-after 'unpack 'do-not-install-to-/opt (add-after 'unpack 'do-not-install-to-/opt
(lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t))))) (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
(propagated-inputs (propagated-inputs
`(("python2-cairocffi" ,python2-cairocffi) `(("python-cairocffi" ,python-cairocffi)
("python2-pytz" ,python2-pytz) ("python-pytz" ,python-pytz)
("python2-whisper" ,python2-whisper) ("python-whisper" ,python-whisper)
("python2-django" ,python2-django) ("python-django" ,python-django-2.2)
("python2-django-tagging" ,python2-django-tagging) ("python-django-tagging" ,python-django-tagging)
("python2-scandir" ,python2-scandir) ("python-scandir" ,python-scandir)
("python2-urllib3" ,python2-urllib3) ("python-urllib3" ,python-urllib3)
("python2-pyparsing" ,python2-pyparsing) ("python-pyparsing" ,python-pyparsing)
("python2-txamqp" ,python2-txamqp))) ("python-txamqp" ,python-txamqp)))
(home-page "http://graphiteapp.org/") (home-page "https://graphiteapp.org/")
(synopsis "Scalable realtime graphing system") (synopsis "Scalable realtime graphing system")
(description "Graphite is a scalable real-time graphing system that does (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 two things: store numeric time-series data, and render graphs of this data on
demand.") demand.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python2-graphite-web
(deprecated-package "python2-graphite-web" graphite-web))
(define-public python-prometheus-client (define-public python-prometheus-client
(package (package
(name "python-prometheus-client") (name "python-prometheus-client")