nixpkgs/pkgs/development/python-modules/django-bootstrap3/default.nix

49 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
django,
# tests
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-bootstrap3";
version = "25.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap3";
tag = "v${version}";
hash = "sha256-gRDU2IDE6cOVBJzdOs8Ww9mItMy/2DPMYusC0TCTqkI=";
};
build-system = [ hatchling ];
dependencies = [ django ];
pythonImportsCheck = [ "bootstrap3" ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
env.DJANGO_SETTINGS_MODULE = "tests.app.settings";
meta = with lib; {
description = "Bootstrap 3 integration for Django";
homepage = "https://github.com/zostera/django-bootstrap3";
changelog = "https://github.com/zostera/django-bootstrap3/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}