1{ lib 2, apispec 3, bottle 4, buildPythonPackage 5, fetchFromGitHub 6, flask 7, mock 8, pytestCheckHook 9, pythonOlder 10, tornado 11}: 12 13buildPythonPackage rec { 14 pname = "apispec-webframeworks"; 15 version = "0.5.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "marshmallow-code"; 22 repo = "apispec-webframeworks"; 23 rev = version; 24 hash = "sha256-ByNmmBLO99njw9JrT+cCW/K4NJBH92smAiIgg47Cvkk="; 25 }; 26 27 propagatedBuildInputs = [ 28 apispec 29 ] ++ apispec.optional-dependencies.yaml; 30 31 nativeCheckInputs = [ 32 bottle 33 flask 34 mock 35 pytestCheckHook 36 tornado 37 ]; 38 39 pythonImportsCheck = [ 40 "apispec_webframeworks" 41 ]; 42 43 meta = with lib; { 44 description = "Web framework plugins for apispec"; 45 homepage = "https://github.com/marshmallow-code/apispec-webframeworks"; 46 changelog = "https://github.com/marshmallow-code/apispec-webframeworks/blob/${version}/CHANGELOG.rst"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}