depot/third_party/nixpkgs/pkgs/development/python-modules/wagtail/tests.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

42 lines
678 B
Nix

{ azure-mgmt-cdn
, azure-mgmt-frontdoor
, boto3
, buildPythonPackage
, django-pattern-library
, elasticsearch
, freezegun
, jinja2
, python-dateutil
, python
, pytz
, wagtail
, wagtail-factories
}:
buildPythonPackage {
pname = "wagtail-tests";
inherit (wagtail) src version;
format = "other";
dontBuild = true;
dontInstall = true;
checkInputs = [
wagtail
wagtail-factories
jinja2
freezegun
elasticsearch
azure-mgmt-cdn
python-dateutil
pytz
boto3
django-pattern-library
azure-mgmt-frontdoor
];
checkPhase = ''
export DJANGO_SETTINGS_MODULE=wagtail.test.settings
${python.interpreter} -m django test
'';
}