pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / secure / default.nix
blobf78cda89176c3e8d034e058f7a1d1c814abe598b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   isPy27,
6   maya,
7   requests,
8 }:
10 buildPythonPackage rec {
11   version = "0.3.0";
12   format = "setuptools";
13   pname = "secure";
14   disabled = isPy27;
16   src = fetchFromGitHub {
17     owner = "typeerror";
18     repo = "secure.py";
19     rev = version;
20     sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk";
21   };
23   propagatedBuildInputs = [
24     maya
25     requests
26   ];
28   # no tests in release
29   doCheck = false;
31   pythonImportsCheck = [ "secure" ];
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   };