3
0
Fork 0
forked from mirrors/nixpkgs

django-crispy-forms: 2019.04.21 -> 1.10.0

This commit is contained in:
Sandro Jäckel 2021-01-26 14:14:31 +01:00
parent b00ab7489e
commit 897b67b324
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,15 +1,20 @@
{ lib, buildPythonPackage, fetchFromGitHub
, pytest_4, pytest-django, django }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-django
, django
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "django-crispy-forms";
version = "2019.04.21";
version = "1.10.0";
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "django-crispy-forms";
rev = "e25a5326697e5b545689b3a914e516404a6911bb";
sha256 = "12zqa76q6i7j47aqvhilivpbdplgp9zw2q8zfcjzlgclrqafaj39";
rev = version;
sha256 = "0y6kskfxgckb9npcgwx4zrs5n9px159zh9zhinhxi3i7wlriqpf5";
};
# For reasons unknown, the source dir must contain a dash
@ -19,12 +24,10 @@ buildPythonPackage {
export sourceRoot=source-
'';
checkInputs = [ pytest_4 pytest-django django ];
checkInputs = [ django pytest-django pytestCheckHook ];
checkPhase = ''
PYTHONPATH="$(pwd):$PYTHONPATH" \
DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings \
pytest crispy_forms/tests
preCheck = ''
export DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings
'';
meta = with lib; {