Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 815 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pyyaml 6, prance 7, marshmallow 8, pytestCheckHook 9, mock 10, openapi-spec-validator 11}: 12 13buildPythonPackage rec { 14 pname = "apispec"; 15 version = "4.4.1"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-qt7UrkUXUsWLcOV5kj2Nt9rwtx9i3vjI/noqUr18BqI="; 21 }; 22 23 propagatedBuildInputs = [ 24 pyyaml 25 prance 26 ]; 27 28 checkInputs = [ 29 openapi-spec-validator 30 marshmallow 31 mock 32 pytestCheckHook 33 ]; 34 35 meta = with lib; { 36 description = "A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification"; 37 homepage = "https://github.com/marshmallow-code/apispec"; 38 license = licenses.mit; 39 maintainers = [ maintainers.costrouc ]; 40 }; 41}