depot/third_party/nixpkgs/pkgs/development/python-modules/django-csp/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

24 lines
600 B
Nix

{ lib, fetchPypi, buildPythonPackage, django }:
buildPythonPackage rec {
pname = "django-csp";
version = "3.7";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "django_csp";
sha256 = "01eda02ad3f10261c74131cdc0b5a6a62b7c7ad4fd017fbefb7a14776e0a9727";
};
# 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;
};
}