aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/bravado-core
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-03-24 10:15:32 +0100
committerKatharina Fey <kookie@spacekookie.de>2020-03-24 10:15:32 +0100
commit96f063dd321abc80ecaa156226cfb7cf9540315a (patch)
tree7a53ef61484fc7bfff6419b1fd635c67199f27d2 /nixpkgs/pkgs/development/python-modules/bravado-core
parentaf58f08d3d524e7b008b73a8497ea710915ffaf1 (diff)
parentd96bd3394b734487d1c3bfbac0e8f17465e03afe (diff)
Merge commit 'd96bd3394b734487d1c3bfbac0e8f17465e03afe'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/bravado-core')
-rw-r--r--nixpkgs/pkgs/development/python-modules/bravado-core/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/bravado-core/default.nix b/nixpkgs/pkgs/development/python-modules/bravado-core/default.nix
new file mode 100644
index 00000000000..55a12009a15
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/bravado-core/default.nix
@@ -0,0 +1,52 @@
+{ 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";
+ version = "5.16.1";
+
+ src = fetchFromGitHub {
+ owner = "Yelp";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0r9gk5vkjbc407fjydms3ik3hnzajq54znyz58d8rm6pvqcvjjpl";
+ };
+
+ checkInputs = [
+ mypy-extensions
+ pytest
+ mock
+ pytest-benchmark
+ ];
+
+ checkPhase = ''pytest --benchmark-skip'';
+
+ 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 ];
+ };
+}