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

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 ];
};
}