1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/openapi-spec-validator/default.nix
Aluísio Augusto Silva Gonçalves a5a5eea480
python3Packages.openapi-spec-validator: add missing dependency on openapi-schema-validator
This new dependency was missed on our update to 0.3.0.
2021-04-27 10:02:30 -03:00

26 lines
865 B
Nix

{ lib, buildPythonPackage, isPy27, fetchPypi
, jsonschema, openapi-schema-validator, pyyaml, six, pathlib
, mock, pytest, pytestcov, pytest-flake8, tox, setuptools }:
buildPythonPackage rec {
pname = "openapi-spec-validator";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "53ba3d884e98ff2062d5ada025aa590541dcd665b8f81067dc82dd61c0923759";
};
propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools ]
++ (lib.optionals (isPy27) [ pathlib ]);
checkInputs = [ mock pytest pytestcov pytest-flake8 tox ];
meta = with lib; {
homepage = "https://github.com/p1c2u/openapi-spec-validator";
description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
license = licenses.asl20;
maintainers = with maintainers; [ rvl ];
};
}