Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
954 B · 41 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142{ lib, buildPythonPackage, django, djangorestframework, fetchFromGitHub, python, setuptools-scm,}:
buildPythonPackage rec { pname = "django-login-required-middleware"; version = "0.9.0"; format = "pyproject";
src = fetchFromGitHub { owner = "CleitonDeLima"; repo = "django-login-required-middleware"; tag = version; hash = "sha256-WFQ/JvKh6gkUxPV27QBd2TzwFS8hfQGmcTInTnmh6iA="; };
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ django ];
checkInputs = [ djangorestframework ];
pythonImportsCheck = [ "login_required" ];
checkPhase = '' ${python.interpreter} -m django test --settings tests.settings '';
meta = with lib; { description = "Requires login to all requests through middleware in Django"; homepage = "https://github.com/CleitonDeLima/django-login-required-middleware"; license = licenses.mit; maintainers = with maintainers; [ onny ]; };}