blob: 05e498df22e66d828975e17381d070461f0e5a13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools-scm,
django,
django-ipware,
pytestCheckHook,
pytest-cov-stub,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-axes";
version = "8.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-axes";
tag = version;
hash = "sha256-yiXj0Wmn9AVKDilmGVTIE+MICmKeO76j2P6jtlt5CFY=";
};
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;
};
}
|