depot/third_party/nixpkgs/pkgs/development/python-modules/django-axes/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

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