python3.pkgs.django-cacheops: fix on darwin (#243941)

This commit is contained in:
Yureka 2023-07-17 23:43:04 +02:00 committed by GitHub
parent bfa726f7dc
commit dbf9f5c0db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,12 +55,17 @@ buildPythonPackage rec {
preCheck = ''
redis-server &
REDIS_PID=$!
while ! redis-cli --scan ; do
echo waiting for redis to be ready
sleep 1
done
'';
postCheck = ''
kill $REDIS_PID
'';
DJANGO_SETTINGS_MODULE = "tests.settings";
meta = with lib; {
@ -69,7 +74,5 @@ buildPythonPackage rec {
changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
# Times out for unknown reasons
broken = stdenv.isDarwin;
};
}