d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
60 lines
1 KiB
Nix
60 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, hatchling
|
|
|
|
# non-propagates
|
|
, django
|
|
|
|
# tests
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-bootstrap3";
|
|
version = "23.4";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zostera";
|
|
repo = "django-bootstrap3";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1/JQ17GjBHH0JbY4EnHOS2B3KhEJdG2yL6O2nc1HNNc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/beautifulsoup4/d' pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|
|
|