1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy27,
6 maya,
7 requests,
8}:
9
10buildPythonPackage rec {
11 version = "0.3.0";
12 format = "setuptools";
13 pname = "secure";
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "typeerror";
18 repo = "secure.py";
19 rev = version;
20 sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk";
21 };
22
23 propagatedBuildInputs = [
24 maya
25 requests
26 ];
27
28 # no tests in release
29 doCheck = false;
30
31 pythonImportsCheck = [ "secure" ];
32
33 meta = with lib; {
34 description = "Adds optional security headers and cookie attributes for Python web frameworks";
35 homepage = "https://github.com/TypeError/secure.py";
36 license = licenses.mit;
37 maintainers = [ ];
38 };
39}