blob: f78cda89176c3e8d034e058f7a1d1c814abe598b (
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
31
32
33
34
35
36
37
38
39
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
maya,
requests,
}:
buildPythonPackage rec {
version = "0.3.0";
format = "setuptools";
pname = "secure";
disabled = isPy27;
src = fetchFromGitHub {
owner = "typeerror";
repo = "secure.py";
rev = version;
sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk";
};
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 = [ ];
};
}
|