1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 21:15:21 +03:00
nixpkgs/pkgs/development/python-modules/django-csp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
782 B
Nix
Raw Normal View History

{
lib,
fetchPypi,
buildPythonPackage,
# build-system
setuptools,
# dependencies
django,
# tests
jinja2,
pytest-django,
pytestCheckHook,
}:
2019-07-10 16:12:29 +02:00
buildPythonPackage rec {
pname = "django-csp";
2024-03-08 02:39:54 +01:00
version = "3.8";
pyproject = true;
2019-07-10 16:12:29 +02:00
src = fetchPypi {
inherit version;
pname = "django_csp";
hash = "sha256-7w8an32Nporm4WnALprGYcDs8E23Dg0dhWQFEqaEccA=";
2019-07-10 16:12:29 +02:00
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [ setuptools ];
dependencies = [ django ];
2019-07-10 16:12:29 +02:00
nativeCheckInputs = [
jinja2
pytest-django
pytestCheckHook
];
2019-07-10 16:12:29 +02:00
meta = with lib; {
2019-07-10 16:12:29 +02:00
description = "Adds Content-Security-Policy headers to Django";
homepage = "https://github.com/mozilla/django-csp";
license = licenses.bsd3;
};
}