Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # non-propagates 11 django, 12 13 # tests 14 pytest-django, 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "django-bootstrap3"; 20 version = "24.2"; 21 format = "pyproject"; 22 23 src = fetchFromGitHub { 24 owner = "zostera"; 25 repo = "django-bootstrap3"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-5nBJ5vfsoGoaG1s3K1hCHcSnGf51ZirYYg+uJGsBmG8="; 28 }; 29 30 nativeBuildInputs = [ 31 setuptools 32 setuptools-scm 33 ]; 34 35 buildInputs = [ django ]; 36 37 pythonImportsCheck = [ "bootstrap3" ]; 38 39 nativeCheckInputs = [ 40 pytest-django 41 pytestCheckHook 42 ]; 43 44 env.DJANGO_SETTINGS_MODULE = "tests.app.settings"; 45 46 meta = with lib; { 47 description = "Bootstrap 3 integration for Django"; 48 homepage = "https://github.com/zostera/django-bootstrap3"; 49 changelog = "https://github.com/zostera/django-bootstrap3/blob/v${version}/CHANGELOG.md"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ hexa ]; 52 }; 53}