1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 django,
6 pytest-django,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "django-cors-headers";
12 version = "3.13.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "adamchainz";
17 repo = "django-cors-headers";
18 rev = version;
19 hash = "sha256-pIyf4poW8/slxj4PVvmXpuYp//v5w00yU0Vz6Jiy2yM=";
20 };
21
22 propagatedBuildInputs = [ django ];
23
24 nativeCheckInputs = [
25 pytest-django
26 pytestCheckHook
27 ];
28
29 meta = with lib; {
30 description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
31 homepage = "https://github.com/OttoYiu/django-cors-headers";
32 license = licenses.mit;
33 maintainers = with maintainers; [ ];
34 };
35}