depot/third_party/nixpkgs/pkgs/development/python-modules/django-bootstrap4/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

59 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, hatchling
# non-propagates
, django
# dependencies
, beautifulsoup4
# tests
, python
}:
buildPythonPackage rec {
pname = "django-bootstrap4";
version = "23.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap4";
rev = "refs/tags/v${version}";
hash = "sha256-RYGwi+hRfTqPAikrv33w27v1/WLwRvXexSusJKdr2o8=";
};
nativeBuildInputs = [
hatchling
];
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 ];
};
}