Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
949 B · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, django-guardian, djangorestframework, setuptools,}:
buildPythonPackage rec { pname = "djangorestframework-guardian2"; version = "0.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "johnthagen"; repo = "django-rest-framework-guardian2"; tag = "v${version}"; hash = "sha256-LrIhOoBWC3HttjAGbul4zof++OW35pGMyFGZzUpG1Tk="; };
postPatch = '' chmod +x manage.py patchShebangs manage.py '';
build-system = [ setuptools ];
dependencies = [ django-guardian djangorestframework ];
checkPhase = '' ./manage.py test '';
pythonImportsCheck = [ "rest_framework_guardian" ];
meta = with lib; { description = "Django-guardian support for Django REST Framework"; homepage = "https://github.com/johnthagen/django-rest-framework-guardian2/"; license = licenses.bsd3; maintainers = with maintainers; [ e1mo ]; };}