1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 flask, 6 packaging, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "flask-cors"; 13 version = "4.0.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "corydolphin"; 18 repo = "flask-cors"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-o//ulROKKBv/CBJIGPBFP/+T0TpMHUVjr23Y5g1V05g="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ flask ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 packaging 30 ]; 31 32 meta = with lib; { 33 description = "A Flask extension adding a decorator for CORS support"; 34 homepage = "https://github.com/corydolphin/flask-cors"; 35 changelog = "https://github.com/corydolphin/flask-cors/releases/tag/v${version}"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ nickcao ]; 38 }; 39}