Commit c2adb4ce authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent daf59551
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
  setuptools-scm,

  # dependencies
  appdirs,
  asgiref,
  click,
  htmltools,
@@ -19,9 +18,11 @@
  narwhals,
  orjson,
  packaging,
  platformdirs,
  prompt-toolkit,
  python-multipart,
  questionary,
  shinychat,
  starlette,
  typing-extensions,
  uvicorn,
@@ -47,14 +48,14 @@

buildPythonPackage rec {
  pname = "shiny";
  version = "1.4.0";
  version = "1.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "posit-dev";
    repo = "py-shiny";
    tag = "v${version}";
    hash = "sha256-SsMZ+aiGFtP6roTiuBZWnHqPso3ZiWLgBToaTLiC2ko=";
    hash = "sha256-zRKfSY0rE+jzwYUcrRTIFW3OVmavhMDbAQEpry46zCI=";
  };

  build-system = [
@@ -63,7 +64,6 @@ buildPythonPackage rec {
  ];

  dependencies = [
    appdirs
    asgiref
    click
    htmltools
@@ -73,10 +73,12 @@ buildPythonPackage rec {
    narwhals
    orjson
    packaging
    platformdirs
    prompt-toolkit
    python-multipart
    questionary
    setuptools
    shinychat
    starlette
    typing-extensions
    uvicorn
@@ -110,6 +112,14 @@ buildPythonPackage rec {
  ]
  ++ lib.flatten (lib.attrValues optional-dependencies);

  pytestFlags = [
    # ERROR: 'fixture' is not a valid asyncio_default_fixture_loop_scope.
    # Valid scopes are: function, class, module, package, session.
    # https://github.com/pytest-dev/pytest-asyncio/issues/924
    "-o asyncio_mode=auto"
    "-o asyncio_default_fixture_loop_scope=function"
  ];

  env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";

  disabledTests = [