45 lines
894 B
Nix
45 lines
894 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
maya,
|
|
pythonOlder,
|
|
requests,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "secure";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "typeerror";
|
|
repo = "secure.py";
|
|
tag = "v${version}";
|
|
hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
maya
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "secure" ];
|
|
|
|
meta = with lib; {
|
|
description = "Adds optional security headers and cookie attributes for Python web frameworks";
|
|
homepage = "https://github.com/TypeError/secure.py";
|
|
changelog = "https://github.com/TypeError/secure/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|