2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2020-11-05 23:17:28 +00:00
|
|
|
, nose, flask, six, packaging }:
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Cors";
|
2021-01-08 15:19:13 +00:00
|
|
|
version = "3.0.10";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-08 15:19:13 +00:00
|
|
|
sha256 = "b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ nose packaging ];
|
2017-09-05 09:16:41 +00:00
|
|
|
propagatedBuildInputs = [ flask six ];
|
|
|
|
|
2019-11-01 17:00:00 +00:00
|
|
|
# Exclude test_acl_uncaught_exception_500 test case because is not compatible
|
|
|
|
# with Flask>=1.1.0. See: https://github.com/corydolphin/flask-cors/issues/253
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --exclude test_acl_uncaught_exception_500
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 09:16:41 +00:00
|
|
|
description = "A Flask extension adding a decorator for CORS support";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/corydolphin/flask-cors";
|
2017-09-05 09:16:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
};
|
|
|
|
}
|