2021-11-28 13:44:11 +00:00
{
lib ,
buildPythonPackage ,
fetchFromGitHub ,
django ,
2023-04-04 06:18:44 +00:00
setuptools ,
2021-11-28 13:44:11 +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 " ;
2024-07-19 15:37:15 +00:00
version = " 2 . 3 " ;
2023-04-04 06:18:44 +00:00
format = " p y p r o j e c t " ;
2021-11-28 13:44:11 +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-02-27 01:14:16 +00:00
rev = " r e f s / t a g s / ${ version } " ;
2024-07-19 15:37:15 +00:00
hash = " s h a 2 5 6 - R 2 s 2 d U s V w 5 p 7 x n 4 y W e F c E 7 a u 8 y H W X j F g S 5 j j C B v e g 0 4 = " ;
2021-11-28 13:44:11 +00:00
} ;
propagatedBuildInputs = [
django
2023-04-04 06:18:44 +00:00
setuptools
2021-11-28 13:44:11 +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-01-21 12:00:00 +00:00
nativeCheckInputs = [
2021-11-28 13:44:11 +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 = " 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 ] ;
} ;
}