2019-05-17 13:20:38 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python-dateutil, jsonref, jsonschema,
|
|
|
|
pyyaml, simplejson, six, pytz, msgpack, swagger-spec-validator, rfc3987,
|
|
|
|
strict-rfc3339, webcolors, mypy-extensions, jsonpointer, idna, pytest, mock,
|
|
|
|
pytest-benchmark, isPy27, enum34 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bravado-core";
|
2021-07-03 19:36:00 +01:00
|
|
|
version = "5.17.0";
|
2019-05-17 13:20:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yelp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-03 19:36:00 +01:00
|
|
|
sha256 = "sha256-okQA4YJq0lyVJuDzD8mMRlOS/K3gf1qRUpw/5M0LlZE=";
|
2019-05-17 13:20:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mypy-extensions
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
pytest-benchmark
|
|
|
|
];
|
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
checkPhase = "pytest --benchmark-skip";
|
2019-05-17 13:20:38 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
jsonref
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
simplejson
|
|
|
|
six
|
|
|
|
pytz
|
|
|
|
msgpack
|
|
|
|
swagger-spec-validator
|
|
|
|
|
|
|
|
# the following 3 packages are included when jsonschema (3.2) is installed
|
|
|
|
# as jsonschema[format], which reflects what happens in setup.py
|
|
|
|
rfc3987
|
|
|
|
strict-rfc3339
|
|
|
|
webcolors
|
|
|
|
jsonpointer
|
|
|
|
idna
|
|
|
|
] ++ lib.optionals isPy27 [ enum34 ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for adding Swagger support to clients and servers";
|
|
|
|
homepage = "https://github.com/Yelp/bravado-core";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|