Merge pull request #64576 from MrMebelMan/init/django-csp-nonce

pythonPackages.django-csp: init at 3.5
This commit is contained in:
worldofpeace 2019-08-15 13:58:18 -04:00 committed by GitHub
commit 3553c9948c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, fetchPypi, buildPythonPackage, django }:
buildPythonPackage rec {
pname = "django-csp";
version = "3.5";
src = fetchPypi {
inherit version;
pname = "django_csp";
sha256 = "0ks4zszbjx5lyqlc34pjica8hfcjzw4i5m6pivvnyv8yf0vh4q04";
};
# too complicated to setup - needs a running django instance
doCheck = false;
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
description = "Adds Content-Security-Policy headers to Django";
homepage = "https://github.com/mozilla/django-csp";
license = licenses.bsd3;
};
}

View File

@ -2818,6 +2818,8 @@ in {
django-cors-headers = callPackage ../development/python-modules/django-cors-headers { };
django-csp = callPackage ../development/python-modules/django-csp { };
django-discover-runner = callPackage ../development/python-modules/django-discover-runner { };
django_environ = callPackage ../development/python-modules/django_environ { };