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-03-15 16:39:30 +00:00
version = " 2 . 0 " ;
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 } " ;
hash = " s h a 2 5 6 - o x O W 7 g F p j U e h W G e q Z Z j h P w p t X 0 G p g j 5 l P 0 l w 0 z k Y G u E = " ;
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 ] ;
} ;
}