depot/third_party/nixpkgs/pkgs/development/python-modules/secure/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
699 B
Nix

{ 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 ];
};
}