nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 maya,
6 requests,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "secure";
13 version = "1.0.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "typeerror";
18 repo = "secure.py";
19 tag = "v${version}";
20 hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 maya
27 requests
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "secure" ];
33
34 meta = {
35 description = "Adds optional security headers and cookie attributes for Python web frameworks";
36 homepage = "https://github.com/TypeError/secure.py";
37 changelog = "https://github.com/TypeError/secure/releases/tag/v${version}";
38 license = lib.licenses.mit;
39 maintainers = [ ];
40 };
41}