Files
nixpkgs/pkgs/development/python-modules/django-timezone-field/default.nix
T
Martin Weinelt 6efd9ed4d1 python3Packages.django-timezone-field: 7.0 -> 7.2.1
This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:10 +01:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
django,
djangorestframework,
pytestCheckHook,
pytest-django,
pytest-lazy-fixtures,
pytz,
}:
buildPythonPackage rec {
pname = "django-timezone-field";
version = "7.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mfogel";
repo = "django-timezone-field";
tag = version;
hash = "sha256-iOdWgLj6qzMYusfpG/aCBk3ca9Ge7Kx2p9herJtpORs=";
};
build-system = [ poetry-core ];
dependencies = [ django ];
pythonImportsCheck = [
# Requested setting USE_DEPRECATED_PYTZ, but settings are not configured.
#"timezone_field"
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
'';
nativeCheckInputs = [
djangorestframework
pytestCheckHook
pytest-django
pytest-lazy-fixtures
pytz
];
meta = {
description = "Django app providing database, form and serializer fields for pytz timezone objects";
homepage = "https://github.com/mfogel/django-timezone-field";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ hexa ];
};
}