1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 flask, 6 werkzeug, 7 pytestCheckHook, 8 setuptools, 9 10 # for passthru.tests 11 aiobotocore, 12 moto, 13}: 14 15buildPythonPackage rec { 16 pname = "flask-cors"; 17 version = "6.0.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "corydolphin"; 22 repo = "flask-cors"; 23 tag = version; 24 hash = "sha256-ySn5o9yDlCYqHozGJ82cPtty/N+EK/NvIynxv9w+hwc="; 25 }; 26 27 build-system = [ 28 setuptools 29 ]; 30 31 dependencies = [ 32 flask 33 werkzeug 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 passthru.tests = { 41 inherit aiobotocore moto; 42 }; 43 44 meta = { 45 description = "Flask extension adding a decorator for CORS support"; 46 homepage = "https://github.com/corydolphin/flask-cors"; 47 changelog = "https://github.com/corydolphin/flask-cors/releases/tag/${src.tag}"; 48 license = with lib.licenses; [ mit ]; 49 maintainers = with lib.maintainers; [ nickcao ]; 50 }; 51}