2021-02-08 01:36:33 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
2019-01-21 10:48:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-cors-headers";
|
2021-01-31 05:50:38 +00:00
|
|
|
version = "3.7.0";
|
2019-01-21 10:48:50 +00:00
|
|
|
|
2021-02-08 01:36:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adamchainz";
|
|
|
|
repo = "django-cors-headers";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1wc8cs1gpg9v98bq5qwnd4pcv043za50wd63gwkm86lbvjxyxynz";
|
2019-01-21 10:48:50 +00:00
|
|
|
};
|
|
|
|
|
2021-02-08 01:36:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
];
|
2019-01-21 10:48:50 +00:00
|
|
|
|
2021-02-08 01:36:33 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-01-21 10:48:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/OttoYiu/django-cors-headers";
|
2019-01-21 10:48:50 +00:00
|
|
|
license = licenses.mit;
|
2021-05-05 18:31:54 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-01-21 10:48:50 +00:00
|
|
|
};
|
|
|
|
}
|