Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 flask, 11 jsonschema, 12 mistune, 13 packaging, 14 pyyaml, 15 six, 16 werkzeug, 17 18 # tests 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "flasgger"; 24 version = "0.9.7.1"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "flasgger"; 29 repo = "flasgger"; 30 rev = "v${version}"; 31 hash = "sha256-ULEf9DJiz/S2wKlb/vjGto8VCI0QDcm0pkU5rlOwtiE="; 32 }; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 flask 38 jsonschema 39 mistune 40 packaging 41 pyyaml 42 six 43 werkzeug 44 ]; 45 46 pythonImportsCheck = [ "flasgger" ]; 47 48 nativeCheckInputs = [ pytestCheckHook ]; 49 50 enabledTestPaths = [ 51 "tests" 52 ]; 53 54 disabledTestPaths = [ 55 # missing flex dependency 56 "tests/test_examples.py" 57 ]; 58 59 meta = with lib; { 60 description = "Easy OpenAPI specs and Swagger UI for your Flask API"; 61 homepage = "https://github.com/flasgger/flasgger/"; 62 license = licenses.mit; 63 maintainers = [ ]; 64 }; 65}