11 buildPythonPackage rec {
12 pname = "django-login-required-middleware";
16 src = fetchFromGitHub {
17 owner = "CleitonDeLima";
19 rev = "refs/tags/${version}";
20 hash = "sha256-WFQ/JvKh6gkUxPV27QBd2TzwFS8hfQGmcTInTnmh6iA=";
23 nativeBuildInputs = [ setuptools-scm ];
25 propagatedBuildInputs = [ django ];
27 checkInputs = [ djangorestframework ];
29 pythonImportsCheck = [ "login_required" ];
32 ${python.interpreter} -m django test --settings tests.settings
36 description = "Requires login to all requests through middleware in Django";
37 homepage = "https://github.com/CleitonDeLima/django-login-required-middleware";
38 license = licenses.mit;
39 maintainers = with maintainers; [ onny ];