diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-10-23 00:37:25 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-11-23 19:47:04 -0800 |
commit | 736703ab8676aef1744836cdaa00148d1b7f2a34 (patch) | |
tree | 1f8f10d9c8630993fe6c94177d92098bc46fe160 /pkgs/development/python-modules/secure | |
parent | d414e213f2e0f9d211414964c90a3c5c1116fb6b (diff) | |
download | nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar.gz nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar.bz2 nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar.lz nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar.xz nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.tar.zst nixpkgs-736703ab8676aef1744836cdaa00148d1b7f2a34.zip |
python3Packages.secure: init at 0.2.1
Diffstat (limited to 'pkgs/development/python-modules/secure')
-rw-r--r-- | pkgs/development/python-modules/secure/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/secure/default.nix b/pkgs/development/python-modules/secure/default.nix new file mode 100644 index 00000000000..6d2f2871ec2 --- /dev/null +++ b/pkgs/development/python-modules/secure/default.nix @@ -0,0 +1,30 @@ +{ 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 ]; + }; +} |