Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at r-updates 64 lines 1.4 kB view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 django, 6 fetchFromGitHub, 7 hatchling, 8 jinja2, 9 pillow, 10 pytest-django, 11 pytestCheckHook, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "django-bootstrap5"; 17 version = "25.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "zostera"; 24 repo = "django-bootstrap5"; 25 rev = "v${version}"; 26 hash = "sha256-5VYw9Kq33/YFW9mFzkFzhrxavfx6r/CtC1SJhZbanhg="; 27 }; 28 29 build-system = [ hatchling ]; 30 31 dependencies = [ django ]; 32 33 optional-dependencies = { 34 jinja = [ jinja2 ]; 35 }; 36 37 nativeCheckInputs = [ 38 beautifulsoup4 39 (django.override { withGdal = true; }) 40 pillow 41 pytest-django 42 pytestCheckHook 43 ] 44 ++ lib.flatten (lib.attrValues optional-dependencies); 45 46 preCheck = '' 47 export DJANGO_SETTINGS_MODULE=tests.app.settings 48 ''; 49 50 disabledTests = [ 51 # urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution> 52 "test_get_bootstrap_setting" 53 ]; 54 55 pythonImportsCheck = [ "django_bootstrap5" ]; 56 57 meta = with lib; { 58 description = "Bootstrap 5 integration with Django"; 59 homepage = "https://github.com/zostera/django-bootstrap5"; 60 changelog = "https://github.com/zostera/django-bootstrap5/blob/${src.rev}/CHANGELOG.md"; 61 license = licenses.bsd3; 62 maintainers = with maintainers; [ netali ]; 63 }; 64}