Files
nixpkgs/pkgs/development/python-modules/secure/default.nix
Fabian Affolter 179571d830 python312Packages.secure: refactor
- enable tests
- update disabled
- update build-system
- add changelog to meta
2025-02-09 13:11:36 +01:00

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 = [ ];
};
}