Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, fetchFromGitHub, dj-database-url, django, django-test-migrations, djangorestframework, packaging, pytest-cov-stub, pytest-django, pytest-dotenv, pytestCheckHook, setuptools, setuptools-scm,}:
buildPythonPackage (finalAttrs: { pname = "djangorestframework-api-key"; version = "3.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "florimondmanca"; repo = "djangorestframework-api-key"; tag = "v${finalAttrs.version}"; hash = "sha256-TyYSO3OQslipl2T5BtsTABaTJD4HMCX61TOZXNR+lXE="; };
# Use python-dotenv instead of django-dotenv # as django-dotenv has not been maintained for # years. patchPhase = '' runHook prePatch
substituteInPlace tests/conftest.py test_project/manage.py \ --replace-fail 'read_dotenv' 'load_dotenv'
runHook postPatch '';
build-system = [ setuptools setuptools-scm ];
dependencies = [ django djangorestframework packaging ];
nativeCheckInputs = [ dj-database-url django-test-migrations pytest-cov-stub pytest-django pytest-dotenv pytestCheckHook ];
pythonImportsCheck = [ "rest_framework_api_key" ];
meta = { description = "API key permissions for Django REST Framework"; homepage = "https://github.com/florimondmanca/djangorestframework-api-key"; changelog = "https://github.com/florimondmanca/djangorestframework-api-key/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ soyouzpanda ]; };})