python3Packages.expression: init at 5.6.0, add to litellm proxy dependency (#555030)

This commit is contained in:
Yt
2026-08-24 08:46:13 +00:00
committed by GitHub
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchPypi,
typing-extensions,
poetry-core,
pydantic,
}:
buildPythonPackage (finalAttrs: {
pname = "expression";
version = "5.6.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
sha256 = "sha256-RU9v4Tg0cZSkPH+HjZWO/puEucx3DkYgEMelLhgFgGU=";
};
build-system = [ poetry-core ];
dependencies = [ typing-extensions ];
optional-dependencies = {
pydantic = [ pydantic ];
};
pythonImportsCheck = [
"expression"
];
meta = {
description = "Functional programming for Python";
homepage = "https://github.com/dbrattli/Expression";
changelog = "https://github.com/dbrattli/Expression/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ happysalada ];
};
})

View File

@@ -13,6 +13,7 @@
buildPythonPackage,
click,
cryptography,
expression,
fastapi,
fastapi-sso,
fastuuid,
@@ -120,6 +121,7 @@ buildPythonPackage rec {
backoff
boto3
cryptography
expression
fastapi
fastapi-sso
gunicorn

View File

@@ -5739,6 +5739,8 @@ self: super: with self; {
explorerscript = callPackage ../development/python-modules/explorerscript { };
expression = callPackage ../development/python-modules/expression { };
exrex = callPackage ../development/python-modules/exrex { };
extension-helpers = callPackage ../development/python-modules/extension-helpers { };