nixpkgs/pkgs/development/python-modules/secure/default.nix

32 lines
722 B
Nix
Raw Normal View History

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