depot/third_party/nixpkgs/pkgs/development/python-modules/django-csp/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

23 lines
563 B
Nix

{ lib, 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 lib; {
description = "Adds Content-Security-Policy headers to Django";
homepage = "https://github.com/mozilla/django-csp";
license = licenses.bsd3;
};
}