2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage
|
2020-11-05 15:17:28 -08:00
|
|
|
, nose, flask, six, packaging }:
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Cors";
|
2021-01-08 07:19:13 -08:00
|
|
|
version = "3.0.10";
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-08 07:19:13 -08:00
|
|
|
sha256 = "b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de";
|
2017-09-05 02:16:41 -07:00
|
|
|
};
|
|
|
|
|
2020-11-05 15:17:28 -08:00
|
|
|
checkInputs = [ nose packaging ];
|
2017-09-05 02:16:41 -07:00
|
|
|
propagatedBuildInputs = [ flask six ];
|
|
|
|
|
2019-11-01 10:00:00 -07: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-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-09-05 02:16:41 -07:00
|
|
|
description = "A Flask extension adding a decorator for CORS support";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/corydolphin/flask-cors";
|
2017-09-05 02:16:41 -07:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
};
|
|
|
|
}
|