litestar: init at 2.12.1 (#355414)

This commit is contained in:
Aleksana
2024-11-13 10:33:06 +08:00
committed by GitHub
4 changed files with 173 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
{
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;
};
}
@@ -0,0 +1,56 @@
{
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;
};
}
@@ -0,0 +1,58 @@
{
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
View File
@@ -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 { };