Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 55 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, django, fetchFromGitHub, hatchling, pyhamcrest, python, pythonOlder, setuptools, setuptools-scm,}:
buildPythonPackage rec { pname = "django-currentuser"; version = "0.8.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "zsoldosp"; repo = "django-currentuser"; tag = "v${version}"; hash = "sha256-buWYVl/nGxzoaDgA6Ds2R/AhGTYpi9JxxO0ER8Vuly4="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ django ];
nativeCheckInputs = [ pyhamcrest ];
preCheck = '' DJANGO_SETTINGS_MODULE="settings" PYTHONPATH="tests:$PYTHONPATH" '';
checkPhase = '' runHook preCheck ${python.interpreter} manage.py test testapp runHook postCheck '';
meta = with lib; { description = "Conveniently store reference to request user on thread/db level"; homepage = "https://github.com/zsoldosp/django-currentuser"; changelog = "https://github.com/zsoldosp/django-currentuser/#release-notes"; license = licenses.bsd3; maintainers = with maintainers; [ augustebaum ]; };}