about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix
blob: 1bc9153d006318b14b4443b4510cab3638b276b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, fetchFromGitHub
, buildPythonPackage
, django
, pytest-django
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "django-cors-headers";
  version = "3.7.0";

  src = fetchFromGitHub {
    owner = "adamchainz";
    repo = "django-cors-headers";
    rev = version;
    sha256 = "1wc8cs1gpg9v98bq5qwnd4pcv043za50wd63gwkm86lbvjxyxynz";
  };

  propagatedBuildInputs = [
    django
  ];

  checkInputs = [
    pytest-django
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
    homepage = "https://github.com/OttoYiu/django-cors-headers";
    license = licenses.mit;
    maintainers = [ maintainers.ivegotasthma ];
  };
}