summary refs log tree commit diff
path: root/pkgs/development/python-modules/secure/default.nix
blob: 6d2f2871ec2d6f1e0454e082547e239842be9bca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchFromGitHub
, maya
, requests
}:

buildPythonPackage rec {
  version = "0.2.1";
  pname = "secure";

  src = fetchFromGitHub {
    owner = "typeerror";
    repo = "secure.py";
    rev = "v${version}";
    sha256 = "1nbxwi0zccrha6js14ibd596kdi1wpqr7jgs442mqclw4b3f77q5";
  };

  propagatedBuildInputs = [ maya requests ];

  # no tests in release
  doCheck = false;

  pythonImportsCheck = [ "secure" ];

  meta = with lib; {
    description = "Adds optional security headers and cookie attributes for Python web frameworks";
    homepage = "https://github.com/TypeError/secure.py";
    license = licenses.mit;
    maintainers = with maintainers; [ jonringer ];
  };
}