2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, nose, flask, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Cors";
|
2019-06-17 19:06:06 +01:00
|
|
|
version = "3.0.8";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-17 19:06:06 +01:00
|
|
|
sha256 = "05id72xwvhni23yasdvpdd8vsf3v4j6gzbqqff2g04j6xcih85vj";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-11-01 17:00:00 +00:00
|
|
|
checkInputs = [ nose ];
|
2017-09-05 10:16:41 +01: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
|
|
|
|
'';
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Flask extension adding a decorator for CORS support";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/corydolphin/flask-cors";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
};
|
|
|
|
}
|