1{ lib, buildPythonPackage, fetchFromGitHub, python-dateutil, jsonref, jsonschema, 2 pyyaml, simplejson, six, pytz, msgpack, swagger-spec-validator, rfc3987, 3 strict-rfc3339, webcolors, mypy-extensions, jsonpointer, idna, pytest, mock, 4 pytest-benchmark, isPy27, enum34 }: 5 6buildPythonPackage rec { 7 pname = "bravado-core"; 8 version = "5.17.0"; 9 10 src = fetchFromGitHub { 11 owner = "Yelp"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-okQA4YJq0lyVJuDzD8mMRlOS/K3gf1qRUpw/5M0LlZE="; 15 }; 16 17 checkInputs = [ 18 mypy-extensions 19 pytest 20 mock 21 pytest-benchmark 22 ]; 23 24 checkPhase = "pytest --benchmark-skip"; 25 26 propagatedBuildInputs = [ 27 python-dateutil 28 jsonref 29 jsonschema 30 pyyaml 31 simplejson 32 six 33 pytz 34 msgpack 35 swagger-spec-validator 36 37 # the following 3 packages are included when jsonschema (3.2) is installed 38 # as jsonschema[format], which reflects what happens in setup.py 39 rfc3987 40 strict-rfc3339 41 webcolors 42 jsonpointer 43 idna 44 ] ++ lib.optionals isPy27 [ enum34 ]; 45 46 meta = with lib; { 47 description = "Library for adding Swagger support to clients and servers"; 48 homepage = "https://github.com/Yelp/bravado-core"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ vanschelven ]; 51 }; 52}