Merge pull request #121921 from dotlambda/graphite-web-scandir
python3Packages.graphite-web: fix build
commit713a95e5d56cd114e6b8dab881799f8922a726a9
authorlsix <lsix+github@lancelotsix.com>
dateSat 8 May 2021, 22:05 (6 years ago)
parent620342d955cf49
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