python3Packages.graphite-web: fix build
commit955cf497adbc6a95284e07c2747af7458addc667
authorRobert Schütz <dev@schuetz-co.de>
dateThu 6 May 2021, 15:32 (6 years ago)
parent39e6bf7
pkgs/development/python-modules/graphite-web/default.nix+6
@@ -28,6 +28,12 @@ buildPythonPackage rec {
2828 ./update-django-tagging.patch
2929 ];
3030
31+ postPatch = ''
32+ # https://github.com/graphite-project/graphite-web/pull/2701
33+ substituteInPlace setup.py \
34+ --replace "'scandir'" "'scandir; python_version < \"3.5\"'"
35+ '';
36+
3137 propagatedBuildInputs = [
3238 django
3339 memcached