2022-10-06 18:32:54 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, pytestCheckHook
, pytest-django
} :
buildPythonPackage rec {
pname = " d j a n g o - c r i s p y - f o r m s " ;
version = " 1 . 1 4 . 0 " ;
src = fetchFromGitHub {
owner = " d j a n g o - c r i s p y - f o r m s " ;
repo = " d j a n g o - c r i s p y - f o r m s " ;
rev = version ;
sha256 = " s h a 2 5 6 - N Z 2 l W x s Q H c 7 Q c 4 H D o W g j J T Z / b J H m j p B f 3 q 1 L V L t z A + 8 = " ;
} ;
propagatedBuildInputs = [
django
] ;
# FIXME: RuntimeError: Model class source.crispy_forms.tests.forms.CrispyTestModel doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
doCheck = false ;
2023-02-02 18:25:31 +00:00
nativeCheckInputs = [
2022-10-06 18:32:54 +00:00
pytest-django
pytestCheckHook
] ;
pytestFlagsArray = [
" - - d s = c r i s p y _ f o r m s . t e s t s . t e s t _ s e t t i n g s "
" c r i s p y _ f o r m s / t e s t s / "
] ;
pythonImportsCheck = [ " c r i s p y _ f o r m s " ] ;
meta = with lib ; {
description = " T h e b e s t w a y t o h a v e D R Y D j a n g o f o r m s . " ;
homepage = " h t t p s : / / d j a n g o - c r i s p y - f o r m s . r e a d t h e d o c s . i o / e n / l a t e s t / " ;
license = licenses . mit ;
maintainers = with maintainers ; [ ambroisie ] ;
} ;
}