2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, django }:
|
2019-07-10 15:12:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-csp";
|
2021-12-06 22:27:10 +00:00
|
|
|
version = "3.7";
|
2019-07-10 15:12:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "django_csp";
|
2021-12-06 22:27:10 +00:00
|
|
|
sha256 = "01eda02ad3f10261c74131cdc0b5a6a62b7c7ad4fd017fbefb7a14776e0a9727";
|
2019-07-10 15:12:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# too complicated to setup - needs a running django instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-10 15:12:29 +01:00
|
|
|
description = "Adds Content-Security-Policy headers to Django";
|
|
|
|
homepage = "https://github.com/mozilla/django-csp";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|