2020-05-03 18:17:49 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
2019-10-23 07:37:25 +00:00
|
|
|
, maya
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.2.1";
|
|
|
|
pname = "secure";
|
2020-05-03 18:17:49 +00:00
|
|
|
disabled = isPy27;
|
2019-10-23 07:37:25 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|