diff options
author | ivegotasthma <ivegotasthma@protonmail.com> | 2019-01-21 11:48:50 +0100 |
---|---|---|
committer | ivegotasthma <ivegotasthma@protonmail.com> | 2019-01-21 13:49:54 +0100 |
commit | 6f9eb70c9c6473b267d80fb3d1f3009ac6e7d519 (patch) | |
tree | 4f693888a387f3b12b01ac65733bda9b1fa74f6f | |
parent | f7de6e5fb3a2fa1acbfe1a0a4a88934287afef1f (diff) |
pythonPackages.django-cors-headers: init at 2.4.0
-rw-r--r-- | pkgs/development/python-modules/django-cors-headers/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-cors-headers/default.nix b/pkgs/development/python-modules/django-cors-headers/default.nix new file mode 100644 index 0000000000000..21f5b841adb8d --- /dev/null +++ b/pkgs/development/python-modules/django-cors-headers/default.nix @@ -0,0 +1,27 @@ +{ lib, + fetchPypi, + django, + buildPythonPackage +}: + +buildPythonPackage rec { + pname = "django-cors-headers"; + version = "2.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1qfa9awsj3f0nwygb0vdh4ilcsfi6zinzng73cd5864x2fbyxhn4"; + }; + + propagatedBuildInputs = [ django ]; + + # pypi release does not include tests + doCheck = false; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1cc07a337d99e..896d2341297b0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2230,6 +2230,8 @@ in { django_contrib_comments = callPackage ../development/python-modules/django_contrib_comments { }; + django-cors-headers = callPackage ../development/python-modules/django-cors-headers { }; + django-discover-runner = callPackage ../development/python-modules/django-discover-runner { }; django_environ = callPackage ../development/python-modules/django_environ { }; |