nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 30 lines 699 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, maya 3, requests 4}: 5 6buildPythonPackage rec { 7 version = "0.2.1"; 8 pname = "secure"; 9 10 src = fetchFromGitHub { 11 owner = "typeerror"; 12 repo = "secure.py"; 13 rev = "v${version}"; 14 sha256 = "1nbxwi0zccrha6js14ibd596kdi1wpqr7jgs442mqclw4b3f77q5"; 15 }; 16 17 propagatedBuildInputs = [ maya requests ]; 18 19 # no tests in release 20 doCheck = false; 21 22 pythonImportsCheck = [ "secure" ]; 23 24 meta = with lib; { 25 description = "Adds optional security headers and cookie attributes for Python web frameworks"; 26 homepage = "https://github.com/TypeError/secure.py"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ jonringer ]; 29 }; 30}