1{ 2 lib, 3 asgiref, 4 buildPythonPackage, 5 django, 6 fetchFromGitHub, 7 pytest-django, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "django-cors-headers"; 15 version = "4.7.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "adamchainz"; 22 repo = "django-cors-headers"; 23 tag = version; 24 hash = "sha256-xKdHUGsl9H724IQn/AFtdumB/TH8m2pUUXs263gYsEg="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 asgiref 31 django 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-django 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "corsheaders" ]; 40 41 meta = with lib; { 42 description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers"; 43 homepage = "https://github.com/OttoYiu/django-cors-headers"; 44 changelog = "https://github.com/adamchainz/django-cors-headers/blob/${version}/CHANGELOG.rst"; 45 license = licenses.mit; 46 maintainers = [ ]; 47 }; 48}