Unverified Commit c78d5b6f authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

litestar: init at 2.12.1 (#355414)

parents 1cc1fbee c9fa166a
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{
  python3Packages,
  lib,
  fetchFromGitHub,
}:

python3Packages.buildPythonApplication rec {
  pname = "litestar";
  version = "2.12.1";
  pyproject = true;

  build-system = with python3Packages; [
    hatchling
  ];

  src = fetchFromGitHub {
    owner = "litestar-org";
    repo = "litestar";
    rev = "refs/tags/v${version}";
    hash = "sha256-bWo+hhSij0H9XGxpqg1/h7O8U8jjTmlaIHfCU5I4RSI=";
  };

  dependencies = with python3Packages; [
    anyio
    click
    redis
    httpx
    msgspec
    multidict
    jinja2
    pyyaml
    rich
    rich-click
    typing-extensions
    psutil
    polyfactory
    trio
    cryptography
    psycopg
    fsspec
    mako
    time-machine
    asyncpg
    picologging
  ];

  meta = {
    homepage = "https://litestar.dev/";
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ bot-wxt1221 ];
    changelog = "https://github.com/litestar-org/litestar/releases/tag/v${version}";
    description = "Production-ready, Light, Flexible and Extensible ASGI API framework";
    license = lib.licenses.mit;
  };
}
+56 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  scikit-build,
  cmake,
  ninja,
  python,
  flaky,
  hypothesis,
}:

buildPythonPackage rec {
  pname = "picologging";
  version = "0.9.4";
  pyproject = true;

  src = fetchFromGitHub {
    # 0.9.4 only release on github
    owner = "microsoft";
    repo = "picologging";
    rev = "refs/tags/${version}";
    hash = "sha256-t75D7aNKAifzeCPwtyKp8LoiXtbbXspRFYnsI0gx+V4=";
  };

  build-system = [
    setuptools
    cmake
    scikit-build
    ninja
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  dontUseCmakeConfigure = true;

  dependencies = [
    flaky
    hypothesis
  ];

  pythonImportCheck = [ "picologging" ];

  meta = {
    homepage = "https://github.com/microsoft/picologging";
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ bot-wxt1221 ];
    changelog = "https://github.com/microsoft/picologging/releases/tag/${version}";
    description = "optimized logging library for Python";
    license = lib.licenses.mit;
  };
}
+58 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  fetchPypi,
  hatchling,
  hypothesis,
  faker,
  msgspec,
  sqlalchemy,
  aiosqlite,
  typing-extensions,
  pymongo,
  pytest-asyncio,
  pydantic,
  pytestCheckHook,
  email-validator,
}:

buildPythonPackage rec {
  pname = "polyfactory";
  version = "2.18.0";
  pyproject = true;

  src = fetchPypi {
    inherit version pname;
    hash = "sha256-BNi01JhuQGzUwWzAHou3Rwg4QtV6XA26Y6Ie5e91umY=";
  };

  build-system = [ hatchling ];

  dependencies = [
    faker
    typing-extensions
    hypothesis
    pydantic
    sqlalchemy
    msgspec
    pymongo
    aiosqlite
    email-validator
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImporeCheck = [ "polyfactory" ];

  meta = {
    homepage = "https://polyfactory.litestar.dev/";
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ bot-wxt1221 ];
    changelog = "https://github.com/litestar-org/polyfactory/releases/tag/v${version}";
    description = "Simple and powerful factories for mock data generation";
    license = lib.licenses.mit;
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -10172,6 +10172,8 @@ self: super: with self; {
  picobox = callPackage ../development/python-modules/picobox { };
  picologging = callPackage ../development/python-modules/picologging { };
  picos = callPackage ../development/python-modules/picos { };
  picosvg = callPackage ../development/python-modules/picosvg { };
@@ -10737,6 +10739,8 @@ self: super: with self; {
  polyline = callPackage ../development/python-modules/polyline { };
  polyfactory = callPackage ../development/python-modules/polyfactory { };
  polygon3 = callPackage ../development/python-modules/polygon3 { };
  polyswarm-api = callPackage ../development/python-modules/polyswarm-api { };