Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 728 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, maya 3, requests 4}: 5 6buildPythonPackage rec { 7 version = "0.2.1"; 8 pname = "secure"; 9 disabled = isPy27; 10 11 src = fetchFromGitHub { 12 owner = "typeerror"; 13 repo = "secure.py"; 14 rev = "v${version}"; 15 sha256 = "1nbxwi0zccrha6js14ibd596kdi1wpqr7jgs442mqclw4b3f77q5"; 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}