about summary refs log tree commit diff
path: root/pkgs/development/python-modules/openapi-spec-validator
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-09-15 21:53:29 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-09-19 10:37:48 +0200
commit504d0e24f32372533f858be7ac0145549de14f85 (patch)
tree7a2e2d3874dd37fcd9463aa42c6274ee15a7f730 /pkgs/development/python-modules/openapi-spec-validator
parentcf758ae35572d27f3431a5e836855d4c90f97c7f (diff)
python3Packages.openapi-spec-validator: 0.4.0 -> 0.5.1
https://github.com/p1c2u/openapi-spec-validator/releases/tag/0.5.1
https://github.com/p1c2u/openapi-spec-validator/releases/tag/0.5.0
Diffstat (limited to 'pkgs/development/python-modules/openapi-spec-validator')
-rw-r--r--pkgs/development/python-modules/openapi-spec-validator/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/openapi-spec-validator/default.nix b/pkgs/development/python-modules/openapi-spec-validator/default.nix
index 2edd464196547..6ee3de6cc37ee 100644
--- a/pkgs/development/python-modules/openapi-spec-validator/default.nix
+++ b/pkgs/development/python-modules/openapi-spec-validator/default.nix
@@ -4,7 +4,10 @@
 , poetry-core
 
 # propagates
+, importlib-resources
 , jsonschema
+, jsonschema-spec
+, lazy-object-proxy
 , openapi-schema-validator
 , pyyaml
 
@@ -18,7 +21,7 @@
 
 buildPythonPackage rec {
   pname = "openapi-spec-validator";
-  version = "0.4.0";
+  version = "0.5.1";
   format = "pyproject";
 
   # no tests via pypi sdist
@@ -26,20 +29,18 @@ buildPythonPackage rec {
     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
   ];
@@ -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 ];
   };