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