Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / swagger-spec-validator / default.nix
blobbdb78096aef271dd8ba369e4bc50c887c15af711
1 { lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock, isPy3k }:
3 buildPythonPackage rec {
4   pname = "swagger-spec-validator";
5   version = "2.5.0";
7   src = fetchFromGitHub {
8     owner = "Yelp";
9     repo = "swagger_spec_validator";
10     rev = "v" + version;
11     sha256 = "0qlkiyncdh7cdyjvnwjpv9i7y75ghwnpyqkkpfaa8hg698na13pw";
12   };
14   checkInputs = [
15     pytest
16     mock
17   ];
19   checkPhase = ''
20     pytest tests
21   '';
23   propagatedBuildInputs = [
24     pyyaml
25     jsonschema
26     six
27   ];
29   meta = with lib; {
30     homepage = "https://github.com/Yelp/swagger_spec_validator";
31     license = licenses.asl20;
32     description = "Validation of Swagger specifications";
33     maintainers = with maintainers; [ vanschelven ];
34   };