1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, maya 3, requests 4}: 5 6buildPythonPackage rec { 7 version = "0.3.0"; 8 pname = "secure"; 9 disabled = isPy27; 10 11 src = fetchFromGitHub { 12 owner = "typeerror"; 13 repo = "secure.py"; 14 rev = version; 15 sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk"; 16 }; 17 18 propagatedBuildInputs = [ maya requests ]; 19 20 # no tests in release 21 doCheck = false; 22 23 pythonImportsCheck = [ "secure" ]; 24 25 meta = with lib; { 26 description = "Adds optional security headers and cookie attributes for Python web frameworks"; 27 homepage = "https://github.com/TypeError/secure.py"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ jonringer ]; 30 }; 31}