depot/third_party/nixpkgs/pkgs/development/python-modules/django-bootstrap4/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

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 = "24.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap4";
rev = "refs/tags/v${version}";
hash = "sha256-TCHie5h/VRJ9NSg7wKnWotFHm328kxIp+xFXEa8wL1c=";
};
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 ];
};
}