e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, setuptools
|
|
, setuptools-scm
|
|
|
|
# non-propagates
|
|
, django
|
|
|
|
# tests
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-bootstrap3";
|
|
version = "23.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zostera";
|
|
repo = "django-bootstrap3";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qqG9w0bQYoQgWXCks/WwwQVoh2DhIMLaFXDQ4z6D84g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
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 ];
|
|
};
|
|
}
|
|
|
|
|