python3Packages.django_5_{1,2}: don't depend on pywatchman (#415400)

This commit is contained in:
Martin Weinelt
2025-06-12 04:35:49 +02:00
committed by GitHub
2 changed files with 2 additions and 15 deletions
@@ -33,7 +33,6 @@
pylibmc,
pymemcache,
python,
pywatchman,
pyyaml,
pytz,
redis,
@@ -108,7 +107,6 @@ buildPythonPackage rec {
pillow
pylibmc
pymemcache
pywatchman
pyyaml
pytz
redis
@@ -117,11 +115,6 @@ buildPythonPackage rec {
tzdata
] ++ lib.flatten (lib.attrValues optional-dependencies);
doCheck =
!stdenv.hostPlatform.isDarwin
# pywatchman depends on folly which does not support 32bits
&& !stdenv.hostPlatform.is32bit;
preCheck = ''
# make sure the installed library gets imported
rm -rf django
@@ -33,7 +33,6 @@
pylibmc,
pymemcache,
python,
pywatchman,
pyyaml,
pytz,
redis,
@@ -101,7 +100,6 @@ buildPythonPackage rec {
pillow
pylibmc
pymemcache
pywatchman
pyyaml
pytz
redis
@@ -110,11 +108,6 @@ buildPythonPackage rec {
tzdata
] ++ lib.flatten (lib.attrValues optional-dependencies);
doCheck =
!stdenv.hostPlatform.isDarwin
# pywatchman depends on folly which does not support 32bits
&& !stdenv.hostPlatform.is32bit;
preCheck = ''
# make sure the installed library gets imported
rm -rf django
@@ -132,7 +125,8 @@ buildPythonPackage rec {
runHook preCheck
pushd tests
${python.interpreter} runtests.py --settings=test_sqlite
# without --parallel=1, tests fail with an "unexpected error due to a database lock" on Darwin
${python.interpreter} runtests.py --settings=test_sqlite ${lib.optionalString stdenv.hostPlatform.isDarwin "--parallel=1"}
popd
runHook postCheck