Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 63 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 ] ++ lib.flatten (lib.attrValues optional-dependencies); 44 45 preCheck = '' 46 export DJANGO_SETTINGS_MODULE=tests.app.settings 47 ''; 48 49 disabledTests = [ 50 # urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution> 51 "test_get_bootstrap_setting" 52 ]; 53 54 pythonImportsCheck = [ "django_bootstrap5" ]; 55 56 meta = with lib; { 57 description = "Bootstrap 5 integration with Django"; 58 homepage = "https://github.com/zostera/django-bootstrap5"; 59 changelog = "https://github.com/zostera/django-bootstrap5/blob/${src.rev}/CHANGELOG.md"; 60 license = licenses.bsd3; 61 maintainers = with maintainers; [ netali ]; 62 }; 63}