472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
46 lines
914 B
Nix
46 lines
914 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools-scm,
|
|
django,
|
|
django-ipware,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
pytest-django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-axes";
|
|
version = "7.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jazzband";
|
|
repo = "django-axes";
|
|
rev = version;
|
|
hash = "sha256-xcA5PN8gznY6BQwHXT42WcOLnIlUACRh33zOlsCpRHE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|