python3Packages.secure: init at 0.2.1

This commit is contained in:
Jonathan Ringer 2019-10-23 00:37:25 -07:00 committed by Jon
parent d414e213f2
commit 736703ab86
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchFromGitHub
, maya
, requests
}:
buildPythonPackage rec {
version = "0.2.1";
pname = "secure";
src = fetchFromGitHub {
owner = "typeerror";
repo = "secure.py";
rev = "v${version}";
sha256 = "1nbxwi0zccrha6js14ibd596kdi1wpqr7jgs442mqclw4b3f77q5";
};
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 = with maintainers; [ jonringer ];
};
}

View file

@ -5548,6 +5548,8 @@ in {
then callPackage ../development/python-modules/secretstorage { }
else callPackage ../development/python-modules/secretstorage/2.nix { };
secure = callPackage ../development/python-modules/secure { };
semantic = callPackage ../development/python-modules/semantic { };
sandboxlib = callPackage ../development/python-modules/sandboxlib { };