1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 setuptools, 7 setuptools-scm, 8 httpagentparser, 9 cherrypy, 10 pytestCheckHook, 11}: 12buildPythonPackage rec { 13 pname = "cherrypy-cors"; 14 version = "1.7.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-gzhM1mSnq4uat9SSb+lxOs/gvONmXuKBiaD6BLnyEtY="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 propagatedBuildInputs = [ 30 httpagentparser 31 cherrypy 32 ]; 33 34 pythonImportsCheck = [ "cherrypy_cors" ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 meta = with lib; { 39 description = "CORS support for CherryPy"; 40 homepage = "https://github.com/cherrypy/cherrypy-cors"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ jpts ]; 43 }; 44}