Skip to content

Commit

Permalink
python3Packages.openapi-spec-validator: 0.4.0 -> 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and SuperSandro2000 committed Sep 17, 2022
1 parent 1f98740 commit 08c2172
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkgs/development/python-modules/openapi-spec-validator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
, poetry-core

# propagates
, importlib-resources
, jsonschema
, jsonschema-spec
, lazy-object-proxy
, openapi-schema-validator
, pyyaml

Expand All @@ -18,28 +21,26 @@

buildPythonPackage rec {
pname = "openapi-spec-validator";
version = "0.4.0";
version = "0.5.1";
format = "pyproject";

# no tests via pypi sdist
src = fetchFromGitHub {
owner = "p1c2u";
repo = pname;
rev = version;
hash = "sha256-mGgHlDZTUo72RNZ/448gkGdza4EntYU9YoBpSKDUCeA=";
hash = "sha256-8VhD57dNG0XrPUdcq39GEfHUAgdDwJ8nv+Lp57OpTLg=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'openapi-schema-validator = "^0.2.0"' 'openapi-schema-validator = "*"'
'';

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
importlib-resources
jsonschema
jsonschema-spec
lazy-object-proxy
openapi-schema-validator
pyyaml
];
Expand Down Expand Up @@ -69,8 +70,9 @@ buildPythonPackage rec {
];

meta = with lib; {
homepage = "https://github.com/p1c2u/openapi-spec-validator";
changelog = "https://github.com/p1c2u/openapi-spec-validator/releases/tag/${version}";
description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
homepage = "https://github.com/p1c2u/openapi-spec-validator";
license = licenses.asl20;
maintainers = with maintainers; [ rvl ];
};
Expand Down

0 comments on commit 08c2172

Please sign in to comment.