mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
https://www.starlette.io/release-notes/#110 https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr Fixes: CVE-2026-48710
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
anyio,
|
|
typing-extensions,
|
|
|
|
# optional dependencies
|
|
itsdangerous,
|
|
jinja2,
|
|
python-multipart,
|
|
pyyaml,
|
|
httpx,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
trio,
|
|
|
|
# reverse dependencies
|
|
fastapi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "starlette";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "encode";
|
|
repo = "starlette";
|
|
tag = version;
|
|
hash = "sha256-9iQXlpA1VDGw1c7X1zJPmJ3Dub46PwqrVIX1+fWOZ7M=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ anyio ];
|
|
|
|
optional-dependencies.full = [
|
|
itsdangerous
|
|
jinja2
|
|
python-multipart
|
|
pyyaml
|
|
httpx
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
trio
|
|
typing-extensions
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pytestFlags = [
|
|
"-Wignore::DeprecationWarning"
|
|
"-Wignore::trio.TrioDeprecationWarning"
|
|
"-Wignore::ResourceWarning" # FIXME remove once test suite is fully compatible with anyio 4.4.0
|
|
];
|
|
|
|
pythonImportsCheck = [ "starlette" ];
|
|
|
|
passthru.tests = {
|
|
inherit fastapi;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://www.starlette.io/release-notes/#${lib.replaceStrings [ "." ] [ "" ] version}";
|
|
downloadPage = "https://github.com/encode/starlette";
|
|
homepage = "https://www.starlette.io/";
|
|
description = "Little ASGI framework that shines";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ wd15 ];
|
|
};
|
|
}
|