Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchPypi, buildPythonPackage 2, nose, flask, six, packaging }: 3 4buildPythonPackage rec { 5 pname = "Flask-Cors"; 6 version = "3.0.10"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de"; 11 }; 12 13 nativeCheckInputs = [ nose packaging ]; 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 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}