Merge pull request #121921 from dotlambda/graphite-web-scandir

python3Packages.graphite-web: fix build
This commit is contained in:
lsix 2021-05-08 22:05:32 +01:00 committed by GitHub
commit 713a95e5d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,12 @@ buildPythonPackage rec {
./update-django-tagging.patch ./update-django-tagging.patch
]; ];
postPatch = ''
# https://github.com/graphite-project/graphite-web/pull/2701
substituteInPlace setup.py \
--replace "'scandir'" "'scandir; python_version < \"3.5\"'"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
django django
memcached memcached