Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 27 lines 774 B view raw
1{ stdenv, fetchPypi, buildPythonPackage 2, nose, flask, six }: 3 4buildPythonPackage rec { 5 pname = "Flask-Cors"; 6 version = "3.0.8"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "05id72xwvhni23yasdvpdd8vsf3v4j6gzbqqff2g04j6xcih85vj"; 11 }; 12 13 checkInputs = [ nose ]; 14 propagatedBuildInputs = [ flask six ]; 15 16 # Exclude test_acl_uncaught_exception_500 test case because is not compatible 17 # with Flask>=1.1.0. See: https://github.com/corydolphin/flask-cors/issues/253 18 checkPhase = '' 19 nosetests --exclude test_acl_uncaught_exception_500 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "A Flask extension adding a decorator for CORS support"; 24 homepage = "https://github.com/corydolphin/flask-cors"; 25 license = with licenses; [ mit ]; 26 }; 27}