1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 08:29:20 +03:00
nixpkgs/pkgs/development/python-modules/secure/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
722 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2019-10-23 00:37:25 -07:00
, maya
, requests
}:
buildPythonPackage rec {
2021-06-18 18:39:14 -07:00
version = "0.3.0";
2019-10-23 00:37:25 -07:00
pname = "secure";
disabled = isPy27;
2019-10-23 00:37:25 -07:00
src = fetchFromGitHub {
owner = "typeerror";
repo = "secure.py";
2021-06-18 18:39:14 -07:00
rev = version;
sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk";
2019-10-23 00:37:25 -07:00
};
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 ];
};
}