e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, setuptools
|
|
, setuptools-scm
|
|
|
|
# non-propagates
|
|
, django
|
|
|
|
# dependencies
|
|
, beautifulsoup4
|
|
|
|
# tests
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-bootstrap4";
|
|
version = "23.4";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zostera";
|
|
repo = "django-bootstrap4";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ccZ/73u4c6E6pfRv+f3Pu8SorF/d7zQBexGAlFcIwTo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bootstrap4"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
(django.override { withGdal = true; })
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} manage.py test -v1 --noinput
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Bootstrap 4 integration with Django";
|
|
homepage = "https://github.com/zostera/django-bootstrap4";
|
|
changelog = "https://github.com/zostera/django-bootstrap4/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|