at master 894 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 maya, 6 pythonOlder, 7 requests, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "secure"; 14 version = "1.0.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "typeerror"; 21 repo = "secure.py"; 22 tag = "v${version}"; 23 hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 maya 30 requests 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "secure" ]; 36 37 meta = with lib; { 38 description = "Adds optional security headers and cookie attributes for Python web frameworks"; 39 homepage = "https://github.com/TypeError/secure.py"; 40 changelog = "https://github.com/TypeError/secure/releases/tag/v${version}"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}