Unverified Commit a12a0bba authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.swagger-ui-py: init 25.7.1

parent e36a463d
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  jinja2,
  packaging,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "swagger-ui-py";
  version = "25.7.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "PWZER";
    repo = "swagger-ui-py";
    tag = "v${version}";
    hash = "sha256-yPGt7EG8KvGoI7Unz0E7fn7nG9Ei/h8Q3TDKnuVVRkQ=";
  };

  env.VERSION = version;

  build-system = [
    setuptools
  ];

  dependencies = [
    jinja2
    packaging
    pyyaml
  ];

  doCheck = false; # huge dependency closure on all sorts of web frameworks, http clients, etc.

  pythonImportsCheck = [
    "swagger_ui"
  ];

  meta = {
    changelog = "https://github.com/PWZER/swagger-ui-py/releases/tag/${src.tag}";
    description = "Swagger UI for Python web framework, such Tornado, Flask and Sanic. https://pwzer.github.io/swagger-ui-py";
    homepage = "https://github.com/PWZER/swagger-ui-py";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ hexa ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -17905,6 +17905,8 @@ self: super: with self; {
  swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
  swagger-ui-py = callPackage ../development/python-modules/swagger-ui-py { };
  swcgeom = callPackage ../development/python-modules/swcgeom { };
  swh-auth = callPackage ../development/python-modules/swh-auth { };