about summary refs log tree commit diff
path: root/pkgs/development/python-modules/apispec
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-07-18 19:01:06 -0400
committerAriel <ingenieroariel@gmail.com>2019-11-15 16:06:41 -0500
commitb9367e7a18beec097a7801dd9092eaa111644da3 (patch)
tree85c0149b2c4f0e86a19130150ea31b1363deabb5 /pkgs/development/python-modules/apispec
parent4cb6a88b3811f9bcf59805bba33b67d97314d129 (diff)
pythonPackages.apispec: init at 2.0.2
Diffstat (limited to 'pkgs/development/python-modules/apispec')
-rw-r--r--pkgs/development/python-modules/apispec/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/apispec/default.nix b/pkgs/development/python-modules/apispec/default.nix
new file mode 100644
index 0000000000000..6d4277a87d5b6
--- /dev/null
+++ b/pkgs/development/python-modules/apispec/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pyyaml
+, prance
+, marshmallow
+, pytest
+, mock
+, openapi-spec-validator
+}:
+
+buildPythonPackage rec {
+  pname = "apispec";
+  version = "2.0.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "11d1aaf620a80f67ded7688fcaf14fa4fd975d566876b5db69b067ffbfe4d1d9";
+  };
+
+  checkInputs = [
+    pyyaml
+    prance
+    openapi-spec-validator
+    marshmallow
+    pytest
+    mock
+  ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  meta = with lib; {
+    description = "A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification";
+    homepage = https://github.com/marshmallow-code/apispec;
+    license = licenses.mit;
+    maintainers = [ maintainers.costrouc ];
+  };
+}