blob: 132d5e1fb6b23393e939777823fde2bab8fb3c07 (
plain)
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
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
maya,
requests,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "secure";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "typeerror";
repo = "secure.py";
tag = "v${version}";
hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I=";
};
build-system = [ setuptools ];
dependencies = [
maya
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "secure" ];
meta = {
description = "Adds optional security headers and cookie attributes for Python web frameworks";
homepage = "https://github.com/TypeError/secure.py";
changelog = "https://github.com/TypeError/secure/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|