blob: b9d62fcbd8e04c2be1fb4494f8ad8fce440acbdf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
flask,
packaging,
pytestCheckHook,
setuptools,
# for passthru.tests
aiobotocore,
moto,
}:
buildPythonPackage rec {
pname = "flask-cors";
version = "4.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "corydolphin";
repo = "flask-cors";
rev = "refs/tags/${version}";
hash = "sha256-ISot5KglCjfbJNsnveDLK44vVaapHRAFdS+1tOd08pw=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ flask ];
nativeCheckInputs = [
pytestCheckHook
packaging
];
passthru.tests = {
inherit aiobotocore moto;
};
meta = with lib; {
description = "Flask extension adding a decorator for CORS support";
homepage = "https://github.com/corydolphin/flask-cors";
changelog = "https://github.com/corydolphin/flask-cors/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ nickcao ];
};
}
|