66, django
77, django-tagging
88, fetchFromGitHub
9- , fetchpatch
109, gunicorn
1110, mock
1211, pyparsing
2120
2221buildPythonPackage rec {
2322 pname = "graphite-web" ;
24- version = "1.1.10 " ;
23+ version = "unstable-2024-07-30 " ;
2524 format = "setuptools" ;
2625
2726 disabled = pythonOlder "3.7" ;
2827
2928 src = fetchFromGitHub {
3029 owner = "graphite-project" ;
3130 repo = pname ;
32- rev = version ;
33- hash = "sha256-2HgCBKwLfxJLKMopoIdsEW5k/j3kNAiifWDnJ98a7Qo =" ;
31+ rev = "80c999a14b7f8c9e8141270a7e56682632b9161f" ;
32+ hash = "sha256-WjiC8aH9nGWDy8OINPGpAQ8cbHgT+bJgOUzIEq93hys =" ;
3433 } ;
3534
36- patches = [
37- ( fetchpatch {
38- name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-1.patch" ;
39- url = "https://github.com/graphite-project/graphite-web/commit/9c626006eea36a9fd785e8f811359aebc9774970.patch" ;
40- hash = "sha256-JMmdhLqsaRhUG2FsH+yPNl+cR7O2YLfKFliL2GU0aAk=" ;
41- } )
42- ( fetchpatch {
43- name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-2.patch" ;
44- url = "https://github.com/graphite-project/graphite-web/commit/2f178f490e10efc03cd1d27c72f64ecab224eb23.patch" ;
45- hash = "sha256-NL7K5uekf3NlLa58aFFRPJT9ktjqBeNlWC4Htd0fRQ0=" ;
46- } )
47- ] ;
48-
4935 propagatedBuildInputs = [
5036 cairocffi
5137 django
@@ -73,6 +59,10 @@ buildPythonPackage rec {
7359 preConfigure = ''
7460 substituteInPlace webapp/graphite/settings.py \
7561 --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
62+
63+ # Django 4 defaults to datetime.tzinfo and it fails on:
64+ # AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize'
65+ echo "USE_DEPRECATED_PYTZ = True" >>webapp/graphite/settings.py
7666 '' ;
7767
7868 checkInputs = [ mock ] ;
@@ -85,6 +75,8 @@ buildPythonPackage rec {
8575 # redis not practical in test environment
8676 substituteInPlace tests/test_tags.py \
8777 --replace test_redis_tagdb _dont_test_redis_tagdb
78+ # No rrdtool package in nixpkgs
79+ rm tests/test_readers_rrd.py
8880
8981 DJANGO_SETTINGS_MODULE=tests.settings ${ python . interpreter } manage.py test
9082 popd
0 commit comments