diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix b/nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix new file mode 100644 index 000000000000..a3b79ca10a3f --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix @@ -0,0 +1,36 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, django +, pytest-django +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "django-cors-headers"; + version = "3.13.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "adamchainz"; + repo = "django-cors-headers"; + rev = version; + hash = "sha256-pIyf4poW8/slxj4PVvmXpuYp//v5w00yU0Vz6Jiy2yM="; + }; + + propagatedBuildInputs = [ + django + ]; + + nativeCheckInputs = [ + 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 = with maintainers; [ ]; + }; +} |