Files
nixpkgs/pkgs/development/python-modules/django-axes/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
914 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools-scm,
django,
django-ipware,
pytestCheckHook,
pytest-cov-stub,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-axes";
version = "8.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-axes";
tag = version;
hash = "sha256-RV2/s372+yjSqYAqikH0VOJKt7fRAej32sgdOoKR/Do=";
};
build-system = [ setuptools-scm ];
dependencies = [ django ];
nativeCheckInputs = [
django-ipware
pytestCheckHook
pytest-cov-stub
pytest-django
];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
pythonImportsCheck = [ "axes" ];
meta = {
description = "Keep track of failed login attempts in Django-powered sites";
homepage = "https://github.com/jazzband/django-axes";
maintainers = with lib.maintainers; [ sikmir ];
license = lib.licenses.mit;
};
}