2022-10-06 18:32:54 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
2023-04-12 12:48:02 +00:00
, setuptools
2022-10-06 18:32:54 +00:00
, pytestCheckHook
, pytest-django
} :
buildPythonPackage rec {
pname = " d j a n g o - c r i s p y - f o r m s " ;
2023-11-16 04:20:00 +00:00
version = " 2 . 1 " ;
2023-04-12 12:48:02 +00:00
format = " p y p r o j e c t " ;
2022-10-06 18:32:54 +00:00
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 " ;
2023-03-15 16:39:30 +00:00
rev = " r e f s / t a g s / ${ version } " ;
2023-11-16 04:20:00 +00:00
hash = " s h a 2 5 6 - U Q 5 m 0 J W i r 2 0 T d L g S + D V V L c M B l I E I f m z v 8 p k M J t a C 0 L A = " ;
2022-10-06 18:32:54 +00:00
} ;
propagatedBuildInputs = [
django
2023-04-12 12:48:02 +00:00
setuptools
2022-10-06 18:32:54 +00:00
] ;
# 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 ] ;
} ;
}